Class: Hotdog::Commands::Search::AnyHostNode

Inherits:
TagExpressionNode show all
Defined in:
lib/hotdog/commands/search.rb

Instance Attribute Summary

Attributes inherited from TagExpressionNode

#attribute, #identifier, #separator

Instance Method Summary collapse

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(options={})
  "1"
end

#condition_tables(options = {}) ⇒ Object



939
940
941
# File 'lib/hotdog/commands/search.rb', line 939

def condition_tables(options={})
  [:hosts]
end

#condition_values(options = {}) ⇒ Object



943
944
945
# File 'lib/hotdog/commands/search.rb', line 943

def condition_values(options={})
  []
end