Class: XTF::Search::Element::Phrase
- Defined in:
- lib/xtf/search/element/phrase.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Clause
Constants inherited from Base
Instance Attribute Summary collapse
-
#phrase ⇒ Object
Takes a
Stringand breaks it up into Terms:.
Attributes inherited from Clause
#content, #section_type, #term
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*args) ⇒ Phrase
constructor
A new instance of Phrase.
Methods inherited from Clause
Methods inherited from Base
Constructor Details
#initialize(*args) ⇒ Phrase
Returns a new instance of Phrase.
5 6 7 8 9 10 11 |
# File 'lib/xtf/search/element/phrase.rb', line 5 def initialize(*args) @tag_name = "phrase" params = args[0] || {} _phrase = params.delete(:phrase) super(params) self.phrase = _phrase if _phrase end |
Instance Attribute Details
#phrase ⇒ Object
Takes a String and breaks it up into Terms:
3 4 5 |
# File 'lib/xtf/search/element/phrase.rb', line 3 def phrase @phrase end |