Class: Hotdog::Expression::AnyHostNode
- Inherits:
-
TagExpressionNode
- Object
- ExpressionNode
- TagExpressionNode
- Hotdog::Expression::AnyHostNode
- Defined in:
- lib/hotdog/expression/semantics.rb
Instance Attribute Summary
Attributes inherited from TagExpressionNode
#separator, #tag_name, #tag_value
Instance Method Summary collapse
- #condition(options = {}) ⇒ Object
- #condition_tables(options = {}) ⇒ Object
- #condition_values(options = {}) ⇒ Object
-
#initialize(separator = nil) ⇒ AnyHostNode
constructor
A new instance of AnyHostNode.
Methods inherited from TagExpressionNode
#==, #dump, #evaluate, #maybe_fallback, #maybe_glob, #maybe_query, #maybe_query_without_condition, #optimize, #reload, #separator?, #tag_name?, #tag_value?, #to_glob
Methods inherited from ExpressionNode
Constructor Details
#initialize(separator = nil) ⇒ AnyHostNode
Returns a new instance of AnyHostNode.
676 677 678 |
# File 'lib/hotdog/expression/semantics.rb', line 676 def initialize(separator=nil) super("host", nil, separator) end |
Instance Method Details
#condition(options = {}) ⇒ Object
680 681 682 |
# File 'lib/hotdog/expression/semantics.rb', line 680 def condition(={}) "1" end |
#condition_tables(options = {}) ⇒ Object
684 685 686 |
# File 'lib/hotdog/expression/semantics.rb', line 684 def condition_tables(={}) [:hosts] end |
#condition_values(options = {}) ⇒ Object
688 689 690 |
# File 'lib/hotdog/expression/semantics.rb', line 688 def condition_values(={}) [] end |