Class: TwoWaySQL::LiteralNode

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

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ LiteralNode

Returns a new instance of LiteralNode.



204
205
206
# File 'lib/twowaysql/node.rb', line 204

def initialize(val)
  @val = val
end

Instance Method Details

#accept(ctx) ⇒ Object



207
208
209
# File 'lib/twowaysql/node.rb', line 207

def accept(ctx)
  ctx.add_sql(@val)
end