Module: KeywordMatcher
- Defined in:
- lib/keyword_matcher.rb,
lib/keyword_matcher/group.rb,
lib/keyword_matcher/process.rb,
lib/keyword_matcher/prophet.rb,
lib/keyword_matcher/version.rb
Defined Under Namespace
Classes: Group, Process, Prophet
Constant Summary collapse
- VERSION =
'0.2.0'.freeze
Class Method Summary collapse
Class Method Details
.matched?(keywords, words) ⇒ Boolean
11 12 13 |
# File 'lib/keyword_matcher.rb', line 11 def matched?(keywords, words) Process.new(Group.new(keywords), Prophet.new(words).explode).found? end |