Sha256: 29a64533a54dca334752c178e8381d11cb237ea1fd2212b6c77aa84b999860ef

Contents?: true

Size: 364 Bytes

Versions: 15

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

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

15 entries across 15 versions & 1 rubygems

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