Class: Hotdog::Commands::Search::NothingNode
- Inherits:
-
QueryExpressionNode
- Object
- ExpressionNode
- QueryExpressionNode
- Hotdog::Commands::Search::NothingNode
- Defined in:
- lib/hotdog/commands/search.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
#dump, #intermediates, #leafs, #optimize
Constructor Details
#initialize(options = {}) ⇒ NothingNode
Returns a new instance of NothingNode.
789 790 791 |
# File 'lib/hotdog/commands/search.rb', line 789 def initialize(={}) super("SELECT NULL AS host_id WHERE host_id NOT NULL", [], ) end |
Instance Method Details
#evaluate(environment, options = {}) ⇒ Object
793 794 795 796 797 798 799 |
# File 'lib/hotdog/commands/search.rb', line 793 def evaluate(environment, ={}) if @fallback @fallback.evaluate(environment, ) else [] end end |