lib/ood_cluster/cluster.rb
def method_missing(method_name, *arguments, &block)
      if /^(.+)_server$/ =~ method_name.to_s
        @servers.fetch($1.to_sym, nil)
      elsif /^(.+)_server\?$/ =~ method_name.to_s
        @servers.has_key?($1.to_sym)
      else
        super
      end
    end
def method_missing(method_name, *arguments, &block)
      if /^(.+)_server$/ =~ method_name.to_s
        @servers.fetch($1.to_sym, nil)
      elsif /^(.+)_server\?$/ =~ method_name.to_s
        @servers.has_key?($1.to_sym)
      else
        super
      end
    end
def method_missing ( method_name , * arguments , & block ) if / / =~ method_name . to_s @servers . fetch ( $1 . to_sym , nil ) elsif / \? / =~ method_name . to_s @servers . has_key? ( $1 . to_sym ) else super end end
Grab object from {@servers} hash or check if it exists
 @param method_name the method name called
 @param arguments the arguments to the call
 @param block an optional block for the call
Grab object from {