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
953 954 955 |
# File 'lib/hotdog/commands/search.rb', line 953 def initialize(separator=nil) super("host", nil, separator) end |
Instance Method Details
#condition(options = {}) ⇒ Object
957 958 959 |
# File 'lib/hotdog/commands/search.rb', line 957 def condition(={}) "1" end |
#condition_tables(options = {}) ⇒ Object
961 962 963 |
# File 'lib/hotdog/commands/search.rb', line 961 def condition_tables(={}) [:hosts] end |
#condition_values(options = {}) ⇒ Object
965 966 967 |
# File 'lib/hotdog/commands/search.rb', line 965 def condition_values(={}) [] end |