Sha256: c94912b413eca9f4ddd9bd9def4d6d2d72613c13414aec81089c2ecd9b962fa8
Contents?: true
Size: 420 Bytes
Versions: 3
Compression:
Stored size: 420 Bytes
Contents
module Tamashii module Manager class Clients < Hash class << self def method_missing(name, *args, &block) self.instance.send(name, *args, &block) end def instance @instance ||= new end end def register(client) self[client.id] = client end def unregister(client) self.delete(client.id) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tamashii-manager-0.1.7 | lib/tamashii/manager/clients.rb |
tamashii-manager-0.1.5 | lib/tamashii/manager/clients.rb |
tamashii-manager-0.1.4 | lib/tamashii/manager/clients.rb |