Class: LuceneQuery::Required
- Inherits:
-
Object
- Object
- LuceneQuery::Required
- Defined in:
- lib/lucene_query.rb
Instance Method Summary collapse
-
#initialize(term) ⇒ Required
constructor
A new instance of Required.
- #to_lucene ⇒ Object
Constructor Details
#initialize(term) ⇒ Required
Returns a new instance of Required.
95 |
# File 'lib/lucene_query.rb', line 95 def initialize(term) @term = term end |
Instance Method Details
#to_lucene ⇒ Object
97 98 99 |
# File 'lib/lucene_query.rb', line 97 def to_lucene "+" + @term.to_lucene end |