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

Version Path
licensee-9.18.0 lib/licensee/matchers/matcher.rb
licensee-9.17.1 lib/licensee/matchers/matcher.rb
licensee-9.17.0 lib/licensee/matchers/matcher.rb
licensee-9.16.1 lib/licensee/matchers/matcher.rb
licensee-9.16.0 lib/licensee/matchers/matcher.rb
licensee-9.15.3 lib/licensee/matchers/matcher.rb
licensee-9.15.2 lib/licensee/matchers/matcher.rb
licensee-9.15.1 lib/licensee/matchers/matcher.rb
licensee-9.15.0 lib/licensee/matchers/matcher.rb
licensee-9.14.1 lib/licensee/matchers/matcher.rb
licensee-9.14.0 lib/licensee/matchers/matcher.rb
licensee-9.13.2 lib/licensee/matchers/matcher.rb
licensee-9.13.1 lib/licensee/matchers/matcher.rb
licensee-9.13.0 lib/licensee/matchers/matcher.rb
licensee-9.12.0 lib/licensee/matchers/matcher.rb