Class: TwoWaySQL::RootNode

Inherits:
Node
  • Object
show all
Defined in:
lib/twowaysql/node.rb

Instance Method Summary collapse

Constructor Details

#initialize(tree) ⇒ RootNode

Returns a new instance of RootNode.



91
92
93
# File 'lib/twowaysql/node.rb', line 91

def initialize(tree)
  @tree = tree
end

Instance Method Details

#accept(ctx) ⇒ Object



94
95
96
# File 'lib/twowaysql/node.rb', line 94

def accept(ctx)
  exec_list(@tree, ctx)
end

#childrenObject



97
98
99
# File 'lib/twowaysql/node.rb', line 97

def children
  @tree
end