Flowdock
method

suggestions

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: Licenses
suggestions(license) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/util/licenses.rb, line 372
  def self.suggestions(license)
    by_distance = IDENTIFIERS.group_by do |identifier|
      levenshtein_distance(identifier, license)
    end
    lowest = by_distance.keys.min
    return unless lowest < license.size
    by_distance[lowest]
  end
Register or log in to add new notes.