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.
202 203 204 |
# File 'lib/twowaysql/node.rb', line 202 def initialize(val) @val = val end |
Instance Method Details
#accept(ctx) ⇒ Object
205 206 207 |
# File 'lib/twowaysql/node.rb', line 205 def accept(ctx) ctx.add_sql(@val) end |