Sha256: f48ebdeb4c5eef2e24020c925a7ffe045900fa489f4b645bcd3d2187ca0f92fb

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

class 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

4 entries across 4 versions & 1 rubygems

Version Path
licensee-6.1.1 lib/licensee/matchers/exact_matcher.rb
licensee-6.1.0 lib/licensee/matchers/exact_matcher.rb
licensee-6.0.0 lib/licensee/matchers/exact_matcher.rb
licensee-6.0.0b1 lib/licensee/matchers/exact_matcher.rb