class Licensee::Matchers::Exact
Public Class Methods
new(file)
click to toggle source
# File lib/licensee/matchers/exact_matcher.rb, line 4 def initialize(file) @file = file end
Public Instance Methods
confidence()
click to toggle source
# File lib/licensee/matchers/exact_matcher.rb, line 12 def confidence 100 end
match()
click to toggle source
# File lib/licensee/matchers/exact_matcher.rb, line 8 def match Licensee.licenses(hidden: true).find { |l| l.wordset == @file.wordset } end