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.
500 501 502 |
# File 'lib/hotdog/expression/semantics.rb', line 500 def initialize(={}) super("SELECT NULL AS host_id WHERE host_id NOT NULL", [], ) end |
Instance Method Details
#evaluate(environment, options = {}) ⇒ Object
504 505 506 507 508 509 510 |
# File 'lib/hotdog/expression/semantics.rb', line 504 def evaluate(environment, ={}) if @fallback @fallback.evaluate(environment, ) else [] end end |