Class: Hotdog::Expression::NothingNode
- Inherits:
-
QueryExpressionNode
- Object
- ExpressionNode
- QueryExpressionNode
- Hotdog::Expression::NothingNode
- Defined in:
- lib/hotdog/expression/semantics.rb
Instance Attribute Summary
Attributes inherited from QueryExpressionNode
Instance Method Summary collapse
- #evaluate(environment, options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ NothingNode
constructor
A new instance of NothingNode.
Methods inherited from QueryExpressionNode
Methods inherited from ExpressionNode
Constructor Details
#initialize(options = {}) ⇒ NothingNode
Returns a new instance of NothingNode.
512 513 514 |
# File 'lib/hotdog/expression/semantics.rb', line 512 def initialize(={}) super("SELECT NULL AS host_id WHERE host_id NOT NULL", [], ) end |
Instance Method Details
#evaluate(environment, options = {}) ⇒ Object
516 517 518 519 520 521 522 |
# File 'lib/hotdog/expression/semantics.rb', line 516 def evaluate(environment, ={}) if @fallback @fallback.evaluate(environment, ) else [] end end |