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