Sha256: 904388ba6d9aee236d20289530b5b971f2423f0668b044eeb4893603e904cf34

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 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

3 entries across 3 versions & 1 rubygems

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