class Licensee::Matchers::Package
Public Instance Methods
confidence()
click to toggle source
# File lib/licensee/matchers/package.rb, line 16 def confidence 90 end
license_property()
click to toggle source
# File lib/licensee/matchers/package.rb, line 20 def license_property raise 'Not implemented' end
match()
click to toggle source
# File lib/licensee/matchers/package.rb, line 6 def match return @match if defined? @match return if license_property.nil? || license_property.to_s.empty? @match = Licensee.licenses(hidden: true).find do |license| license.key == license_property end @match ||= License.find('other') end