Class: SearchCopGrammar::Nodes::Binary

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(left, right) ⇒ Binary

Returns a new instance of Binary.



62
63
64
65
# File 'lib/search_cop_grammar/nodes.rb', line 62

def initialize(left, right)
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject

Returns the value of attribute left.



60
61
62
# File 'lib/search_cop_grammar/nodes.rb', line 60

def left
  @left
end

#rightObject

Returns the value of attribute right.



60
61
62
# File 'lib/search_cop_grammar/nodes.rb', line 60

def right
  @right
end