class Licensee::Matchers::Exact
Attributes
file[R]
Public Class Methods
new(file)
click to toggle source
# File lib/licensee/matchers/exact_matcher.rb, line 6 def initialize(file) @file = file end
Public Instance Methods
confidence()
click to toggle source
# File lib/licensee/matchers/exact_matcher.rb, line 16 def confidence 100 end
match()
click to toggle source
# File lib/licensee/matchers/exact_matcher.rb, line 10 def match Licensee.licenses(hidden: true).find do |license| license.length == @file.length && license.wordset == @file.wordset end end