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