Class: Hotdog::Commands::Search::AnyHostNode
- Inherits:
-
TagExpressionNode
- Object
- ExpressionNode
- TagExpressionNode
- Hotdog::Commands::Search::AnyHostNode
- Defined in:
- lib/hotdog/commands/search.rb
Instance Attribute Summary
Attributes inherited from TagExpressionNode
#attribute, #identifier, #separator
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
#==, #attribute?, #dump, #evaluate, #identifier?, #maybe_fallback, #maybe_glob, #maybe_query, #maybe_query_without_condition, #optimize, #reload, #separator?, #to_glob
Methods inherited from ExpressionNode
#dump, #evaluate, #intermediates, #leafs, #optimize
Constructor Details
#initialize(separator = nil) ⇒ AnyHostNode
Returns a new instance of AnyHostNode.
931 932 933 |
# File 'lib/hotdog/commands/search.rb', line 931 def initialize(separator=nil) super("host", nil, separator) end |
Instance Method Details
#condition(options = {}) ⇒ Object
935 936 937 |
# File 'lib/hotdog/commands/search.rb', line 935 def condition(={}) "1" end |
#condition_tables(options = {}) ⇒ Object
939 940 941 |
# File 'lib/hotdog/commands/search.rb', line 939 def condition_tables(={}) [:hosts] end |
#condition_values(options = {}) ⇒ Object
943 944 945 |
# File 'lib/hotdog/commands/search.rb', line 943 def condition_values(={}) [] end |