module PipeRpc class Hub::Clients def initialize(hub) @hub = hub @clients = {} end def [](server) @clients[server.to_sym] ||= Client.new(server.to_sym, @hub) end end end