Sha256: 66c769b46f2a21cb139c672e812d69aaea6a2a1b0668c2aa2306f1622d49fdf8

Contents?: true

Size: 248 Bytes

Versions: 1

Compression:

Stored size: 248 Bytes

Contents

class Licensee
  class PackageMatcher < Matcher

    def match
      Licensee.licenses.find { |l| l.key == license_property } if file.package?
    end

    def confidence
      90
    end

    def self.package_manager?
      true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
licensee-5.0.0b1 lib/licensee/matchers/package_matcher.rb