Class: TwoWaySQL::LiteralNode
Instance Method Summary collapse
- #accept(ctx) ⇒ Object
-
#initialize(val) ⇒ LiteralNode
constructor
A new instance of LiteralNode.
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 |