Class: SearchCopGrammar::Nodes::FulltextExpression

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/search_cop_grammar/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#and, #can_flatten?, #can_group?, #can_optimize?, #finalize!, #flatten!, #fulltext?, #group!, #nodes, #not, #optimize!, #or

Constructor Details

#initialize(collection, node) ⇒ FulltextExpression

Returns a new instance of FulltextExpression.



120
121
122
123
# File 'lib/search_cop_grammar/nodes.rb', line 120

def initialize(collection, node)
  @collection = collection
  @node = node
end

Instance Attribute Details

#collectionObject (readonly)

Returns the value of attribute collection.



118
119
120
# File 'lib/search_cop_grammar/nodes.rb', line 118

def collection
  @collection
end

#nodeObject (readonly)

Returns the value of attribute node.



118
119
120
# File 'lib/search_cop_grammar/nodes.rb', line 118

def node
  @node
end