Sha256: 77e54d972b9e31c2749106473f941f8629f4dcd26a29987f2a845207290712e2

Contents?: true

Size: 570 Bytes

Versions: 4

Compression:

Stored size: 570 Bytes

Contents

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)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
licensee-9.10.1 lib/licensee/matchers/matcher.rb
licensee-9.10.0 lib/licensee/matchers/matcher.rb
licensee-9.9.4 lib/licensee/matchers/matcher.rb
licensee-9.9.3 lib/licensee/matchers/matcher.rb