Sha256: b4a3979e41d6925dae2385d78dd53a57f747d41cc1cb9ae6b98069ae485fc97b
Contents?: true
Size: 616 Bytes
Versions: 15
Compression:
Stored size: 616 Bytes
Contents
# frozen_string_literal: true module Licensee module Matchers class Matcher attr_reader :file include Licensee::HashHelper HASH_METHODS = %i[name confidence].freeze def initialize(file) @file = file end def name @name ||= self.class.to_s.split('::').last.downcase.to_sym end def match raise 'Not implemented' end def confidence raise 'Not implemented' end private def potential_matches @potential_matches ||= Licensee.licenses(hidden: true, psuedo: false) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems