Class: Licensee::Matchers::Matcher
- Inherits:
-
Object
- Object
- Licensee::Matchers::Matcher
show all
- Includes:
- HashHelper
- Defined in:
- lib/licensee/matchers/matcher.rb
Constant Summary
collapse
- HASH_METHODS =
%i[name confidence].freeze
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from HashHelper
#to_h
Constructor Details
#initialize(file) ⇒ Matcher
Returns a new instance of Matcher.
9
10
11
|
# File 'lib/licensee/matchers/matcher.rb', line 9
def initialize(file)
@file = file
end
|
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
4
5
6
|
# File 'lib/licensee/matchers/matcher.rb', line 4
def file
@file
end
|
Instance Method Details
#confidence ⇒ Object
21
22
23
|
# File 'lib/licensee/matchers/matcher.rb', line 21
def confidence
raise 'Not implemented'
end
|
#match ⇒ Object
17
18
19
|
# File 'lib/licensee/matchers/matcher.rb', line 17
def match
raise 'Not implemented'
end
|
#name ⇒ Object
13
14
15
|
# File 'lib/licensee/matchers/matcher.rb', line 13
def name
@name ||= self.class.to_s.split('::').last.downcase.to_sym
end
|