Class: KeywordMatcher::Process
- Inherits:
-
Object
- Object
- KeywordMatcher::Process
- Defined in:
- lib/keyword_matcher/process.rb
Constant Summary collapse
- FUZZINESS =
1- MIN_WORD_LENGTH_FOR_FUZZY =
4
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#words ⇒ Object
readonly
Returns the value of attribute words.
Instance Method Summary collapse
- #found? ⇒ Boolean
-
#initialize(group, words) ⇒ Process
constructor
A new instance of Process.
Constructor Details
#initialize(group, words) ⇒ Process
Returns a new instance of Process.
8 9 10 11 |
# File 'lib/keyword_matcher/process.rb', line 8 def initialize(group, words) @group = group @words = words end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
3 4 5 |
# File 'lib/keyword_matcher/process.rb', line 3 def group @group end |
#words ⇒ Object (readonly)
Returns the value of attribute words.
3 4 5 |
# File 'lib/keyword_matcher/process.rb', line 3 def words @words end |
Instance Method Details
#found? ⇒ Boolean
13 14 15 |
# File 'lib/keyword_matcher/process.rb', line 13 def found? in_any?(group.or) && negation_found?.blank? end |