Sha256: 169447e1e0982ad64488b5ed52845cd0a66b86ead8e2a5eebbade9a546647ebd

Contents?: true

Size: 277 Bytes

Versions: 7

Compression:

Stored size: 277 Bytes

Contents

module Licensee
  module Matchers
    class Exact
      def initialize(file)
        @file = file
      end

      def match
        Licensee.licenses(hidden: true).find { |l| l.wordset == @file.wordset }
      end

      def confidence
        100
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
licensee-8.3.1 lib/licensee/matchers/exact_matcher.rb
licensee-8.3.0 lib/licensee/matchers/exact_matcher.rb
licensee-8.2.0 lib/licensee/matchers/exact_matcher.rb
licensee-8.1.0 lib/licensee/matchers/exact_matcher.rb
licensee-8.0.0 lib/licensee/matchers/exact_matcher.rb
licensee-7.0.1 lib/licensee/matchers/exact_matcher.rb
licensee-7.0.0 lib/licensee/matchers/exact_matcher.rb