Class: TwoWaySQL::BindVariableNode
Instance Method Summary collapse
- #accept(ctx) ⇒ Object
-
#initialize(exp) ⇒ BindVariableNode
constructor
A new instance of BindVariableNode.
Constructor Details
#initialize(exp) ⇒ BindVariableNode
Returns a new instance of BindVariableNode.
151 152 153 |
# File 'lib/twowaysql/node.rb', line 151 def initialize(exp) @exp = exp end |
Instance Method Details
#accept(ctx) ⇒ Object
154 155 156 |
# File 'lib/twowaysql/node.rb', line 154 def accept(ctx) ctx.add_value(do_eval(ctx, @exp)) end |