Sha256: 5654bd205658be37975151753802cd95893738b23b4590847782f6c66cc9f6d0
Contents?: true
Size: 332 Bytes
Versions: 16
Compression:
Stored size: 332 Bytes
Contents
module Faye class Namespace extend Forwardable def_delegator :@used, :delete, :release def_delegator :@used, :has_key?, :exists? def initialize @used = {} end def generate name = Engine.random name = Engine.random while @used.has_key?(name) @used[name] = name end end end
Version data entries
16 entries across 16 versions & 3 rubygems