Sha256: 440566f6029e93bbc1be21dd8071148ef2eec6cefea978eab0bf8c7e9255c28f
Contents?: true
Size: 394 Bytes
Versions: 3
Compression:
Stored size: 394 Bytes
Contents
module Tamashii module Manager class Connection < Set class << self def instance @instance ||= Connection.new end def register(client) instance.add(client) end def unregister(client) instance.delete(client) end def available? !instance.empty? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tamashii-manager-0.1.7 | lib/tamashii/manager/connection.rb |
tamashii-manager-0.1.5 | lib/tamashii/manager/connection.rb |
tamashii-manager-0.1.4 | lib/tamashii/manager/connection.rb |