Sha256: 0cc479715d8ed1a2f75410c342d49162264838d72f50cac1b07e319bd6789324
Contents?: true
Size: 344 Bytes
Versions: 2
Compression:
Stored size: 344 Bytes
Contents
module Licensee module Matchers class Exact def initialize(file) @file = file end def match Licensee.licenses(hidden: true).find do |license| license.length == @file.length && license.wordset == @file.wordset end end def confidence 100 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
licensee-8.5.0 | lib/licensee/matchers/exact_matcher.rb |
licensee-8.4.0 | lib/licensee/matchers/exact_matcher.rb |