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 11
def initialize(file)
  @file = file
end

Public Instance Methods

confidence() click to toggle source
# File lib/licensee/matchers/matcher.rb, line 23
def confidence
  raise 'Not implemented'
end
match() click to toggle source
# File lib/licensee/matchers/matcher.rb, line 19
def match
  raise 'Not implemented'
end
name() click to toggle source
# File lib/licensee/matchers/matcher.rb, line 15
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 29
def potential_matches
  @potential_matches ||= Licensee.licenses(hidden: true, psuedo: false)
end