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.
11
12
13
|
# File 'lib/licensee/matchers/matcher.rb', line 11
def initialize(file)
@file = file
end
|
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
6
7
8
|
# File 'lib/licensee/matchers/matcher.rb', line 6
def file
@file
end
|
Instance Method Details
#confidence ⇒ Object
23
24
25
|
# File 'lib/licensee/matchers/matcher.rb', line 23
def confidence
raise 'Not implemented'
end
|
#match ⇒ Object
19
20
21
|
# File 'lib/licensee/matchers/matcher.rb', line 19
def match
raise 'Not implemented'
end
|
#name ⇒ Object
15
16
17
|
# File 'lib/licensee/matchers/matcher.rb', line 15
def name
@name ||= self.class.to_s.split('::').last.downcase.to_sym
end
|