method

suggestions

v2_6_3 - Show latest stable - Class: Gem::Licenses
suggestions(license)
public

No documentation available.

# File lib/rubygems/util/licenses.rb, line 429
  def self.suggestions(license)
    by_distance = LICENSE_IDENTIFIERS.group_by do |identifier|
      levenshtein_distance(identifier, license)
    end
    lowest = by_distance.keys.min
    return unless lowest < license.size
    by_distance[lowest]
  end