Sha256: 8c6cf9a84869529fcbf9e99ec9e84989661a2a5c49d2f522d266590984148d2c

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require 'active_support'
require 'active_support/core_ext'
require 'keyword_matcher/version'
require 'keyword_matcher/group'
require 'keyword_matcher/prophet'
require 'keyword_matcher/process'

module KeywordMatcher
  class << self
    def matched?(keywords, words)
      Process.new(Group.new(keywords), Prophet.new(words).explode).found?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
keyword_matcher-0.7.0 lib/keyword_matcher.rb