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.
769 770 771 |
# File 'lib/hotdog/commands/search.rb', line 769 def initialize(={}) super("SELECT NULL AS host_id WHERE host_id NOT NULL", [], ) end |
Instance Method Details
#evaluate(environment, options = {}) ⇒ Object
773 774 775 776 777 778 779 |
# File 'lib/hotdog/commands/search.rb', line 773 def evaluate(environment, ={}) if @fallback @fallback.evaluate(environment, ) else [] end end |