Class: Licensee::Matchers::Matcher

Inherits:
Object
  • Object
show all
Includes:
HashHelper
Defined in:
lib/licensee/matchers/matcher.rb

Direct Known Subclasses

Copyright, Dice, Exact, Package, Reference

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

#fileObject (readonly)

Returns the value of attribute file.



6
7
8
# File 'lib/licensee/matchers/matcher.rb', line 6

def file
  @file
end

Instance Method Details

#confidenceObject



23
24
25
# File 'lib/licensee/matchers/matcher.rb', line 23

def confidence
  raise 'Not implemented'
end

#matchObject



19
20
21
# File 'lib/licensee/matchers/matcher.rb', line 19

def match
  raise 'Not implemented'
end

#nameObject



15
16
17
# File 'lib/licensee/matchers/matcher.rb', line 15

def name
  @name ||= self.class.to_s.split('::').last.downcase.to_sym
end