Class: LuceneQuery::Not
- Inherits:
-
Object
- Object
- LuceneQuery::Not
- Defined in:
- lib/lucene_query.rb
Instance Method Summary collapse
-
#initialize(term) ⇒ Not
constructor
A new instance of Not.
- #to_lucene ⇒ Object
Constructor Details
#initialize(term) ⇒ Not
Returns a new instance of Not.
87 |
# File 'lib/lucene_query.rb', line 87 def initialize(term) @term = term end |
Instance Method Details
#to_lucene ⇒ Object
89 90 91 |
# File 'lib/lucene_query.rb', line 89 def to_lucene "NOT #{@term.to_lucene}" end |