class Licensee::Matchers::Matcher

Constants

HASH_METHODS

Attributes

file[R]

Public Class Methods

new(file) click to toggle source
# File lib/licensee/matchers/matcher.rb, line 10
def initialize(file)
  @file = file
end

Public Instance Methods

confidence() click to toggle source
# File lib/licensee/matchers/matcher.rb, line 22
def confidence
  raise 'Not implemented'
end
match() click to toggle source
# File lib/licensee/matchers/matcher.rb, line 18
def match
  raise 'Not implemented'
end
name() click to toggle source
# File lib/licensee/matchers/matcher.rb, line 14
def name
  @name ||= self.class.to_s.split('::').last.downcase.to_sym
end

Private Instance Methods

potential_matches() click to toggle source
# File lib/licensee/matchers/matcher.rb, line 28
def potential_matches
  @potential_matches ||= Licensee.licenses(hidden: true, psuedo: false)
end