Class: Licensee::Matchers::Exact
- Inherits:
-
Matcher
- Object
- Matcher
- Licensee::Matchers::Exact
show all
- Defined in:
- lib/licensee/matchers/exact.rb
Constant Summary
Constants inherited
from Matcher
Matcher::HASH_METHODS
Instance Attribute Summary
Attributes inherited from Matcher
#file
Instance Method Summary
collapse
Methods inherited from Matcher
#initialize, #name
Methods included from HashHelper
#to_h
Instance Method Details
#confidence ⇒ Object
12
13
14
|
# File 'lib/licensee/matchers/exact.rb', line 12
def confidence
100
end
|
#match ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/licensee/matchers/exact.rb', line 4
def match
return @match if defined? @match
@match = potential_matches.find do |potential_match|
potential_match.wordset == file.wordset
end
end
|