Class: Licensee::Matcher
- Inherits:
-
Object
- Object
- Licensee::Matcher
- Defined in:
- lib/licensee/matcher.rb
Direct Known Subclasses
CopyrightMatcher, ExactMatcher, GitMatcher, LevenshteinMatcher
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Class Method Summary collapse
Instance Method Summary collapse
- #confidence ⇒ Object (also: #similarity)
-
#initialize(file) ⇒ Matcher
constructor
A new instance of Matcher.
- #match ⇒ Object
Constructor Details
#initialize(file) ⇒ Matcher
Returns a new instance of Matcher.
15 16 17 |
# File 'lib/licensee/matcher.rb', line 15 def initialize(file) @file = file end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
9 10 11 |
# File 'lib/licensee/matcher.rb', line 9 def file @file end |
Class Method Details
.match(file) ⇒ Object
11 12 13 |
# File 'lib/licensee/matcher.rb', line 11 def self.match(file) self.new(file).match end |
Instance Method Details
#confidence ⇒ Object Also known as: similarity
23 24 25 |
# File 'lib/licensee/matcher.rb', line 23 def confidence 0 end |
#match ⇒ Object
19 20 21 |
# File 'lib/licensee/matcher.rb', line 19 def match nil end |