Sha256: 658fc8160f971dd0c1d6ee127f8e08f7033756a2a1f57de3392225cc06e10ead

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 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, psuedo: false)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
licensee-9.11.0 lib/licensee/matchers/matcher.rb