Class: Licensee::Matchers::Exact

Inherits:
Object
  • Object
show all
Defined in:
lib/licensee/matchers/exact_matcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Exact



4
5
6
# File 'lib/licensee/matchers/exact_matcher.rb', line 4

def initialize(file)
  @file = file
end

Instance Method Details

#confidenceObject



12
13
14
# File 'lib/licensee/matchers/exact_matcher.rb', line 12

def confidence
  100
end

#matchObject



8
9
10
# File 'lib/licensee/matchers/exact_matcher.rb', line 8

def match
  Licensee.licenses(:hidden => true).find { |l| l.wordset == @file.wordset }
end