Class: AttrSearchableGrammar::Nodes::Binary

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/attr_searchable_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, #to_sql

Constructor Details

#initialize(left, right) ⇒ Binary

Returns a new instance of Binary.



67
68
69
70
# File 'lib/attr_searchable_grammar/nodes.rb', line 67

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

Instance Attribute Details

#leftObject

Returns the value of attribute left.



65
66
67
# File 'lib/attr_searchable_grammar/nodes.rb', line 65

def left
  @left
end

#rightObject

Returns the value of attribute right.



65
66
67
# File 'lib/attr_searchable_grammar/nodes.rb', line 65

def right
  @right
end