Class: SearchCopGrammar::Nodes::FulltextCollection
- Inherits:
-
Collection
- Object
- Collection
- SearchCopGrammar::Nodes::FulltextCollection
- Defined in:
- lib/search_cop_grammar/nodes.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Attributes inherited from Collection
Instance Method Summary collapse
- #finalize! ⇒ Object
- #fulltext? ⇒ Boolean
-
#initialize(collection, *nodes) ⇒ FulltextCollection
constructor
A new instance of FulltextCollection.
Methods inherited from Collection
#can_flatten?, #can_group?, #flatten!, #group!
Methods included from Base
#and, #can_flatten?, #can_group?, #can_optimize?, #flatten!, #group!, #nodes, #not, #optimize!, #or
Constructor Details
#initialize(collection, *nodes) ⇒ FulltextCollection
Returns a new instance of FulltextCollection.
159 160 161 162 163 |
# File 'lib/search_cop_grammar/nodes.rb', line 159 def initialize(collection, *nodes) @collection = collection super(*nodes) end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
157 158 159 |
# File 'lib/search_cop_grammar/nodes.rb', line 157 def collection @collection end |
Instance Method Details
#finalize! ⇒ Object
169 170 171 |
# File 'lib/search_cop_grammar/nodes.rb', line 169 def finalize! FulltextExpression.new collection, self end |
#fulltext? ⇒ Boolean
165 166 167 |
# File 'lib/search_cop_grammar/nodes.rb', line 165 def fulltext? true end |