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



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

#condition_tables(options = {}) ⇒ Object



961
962
963
# File 'lib/hotdog/commands/search.rb', line 961

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

#condition_values(options = {}) ⇒ Object



965
966
967
# File 'lib/hotdog/commands/search.rb', line 965

def condition_values(options={})
  []
end