Class: RediSearch::Search::Clauses::Slop
- Inherits:
-
ApplicationClause
- Object
- ApplicationClause
- RediSearch::Search::Clauses::Slop
- Defined in:
- lib/redi_search/search/clauses/slop.rb
Instance Method Summary collapse
- #clause ⇒ Object
-
#initialize(slop:) ⇒ Slop
constructor
A new instance of Slop.
Methods inherited from ApplicationClause
#clause_order, clause_order, clause_term
Methods included from Validatable
Constructor Details
#initialize(slop:) ⇒ Slop
Returns a new instance of Slop.
10 11 12 |
# File 'lib/redi_search/search/clauses/slop.rb', line 10 def initialize(slop:) @slop = slop end |
Instance Method Details
#clause ⇒ Object
14 15 16 17 18 |
# File 'lib/redi_search/search/clauses/slop.rb', line 14 def clause validate! ["SLOP", slop] end |