Sha256: 508bd397f68230f42f830d03bcc60c57ab8a91a43196913486f16b2ce9974beb

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

module Licensee
  module Matchers
    class Exact < Licensee::Matchers::Matcher
      def match
        return @match if defined? @match

        @match = potential_matches.find do |potential_match|
          potential_match.wordset == file.wordset
        end
      end

      def confidence
        100
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
licensee-9.11.0 lib/licensee/matchers/exact.rb
licensee-9.10.1 lib/licensee/matchers/exact.rb