Class: LuceneQuery::Field
- Inherits:
-
Object
- Object
- LuceneQuery::Field
- Defined in:
- lib/lucene_query.rb
Instance Method Summary collapse
-
#initialize(key, val) ⇒ Field
constructor
A new instance of Field.
- #to_lucene ⇒ Object
Constructor Details
#initialize(key, val) ⇒ Field
Returns a new instance of Field.
61 62 63 |
# File 'lib/lucene_query.rb', line 61 def initialize(key, val) @key, @val = key, val end |
Instance Method Details
#to_lucene ⇒ Object
65 66 67 |
# File 'lib/lucene_query.rb', line 65 def to_lucene @key.to_lucene + ":" + @val.to_lucene end |