Sha256: 8f83f50745670df7e4aaf1877709959faf93f318685ebb2a4cd903ee678f0f70

Contents?: true

Size: 227 Bytes

Versions: 12

Compression:

Stored size: 227 Bytes

Contents

module Faye
  class Namespace
    
    def initialize
      @used = {}
    end
    
    def generate
      name = Faye.random
      name = Faye.random while @used.has_key?(name)
      @used[name] = name
    end
    
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
faye-0.6.0 lib/faye/util/namespace.rb
faye-0.5.5 lib/faye/util/namespace.rb
faye-0.5.4 lib/faye/util/namespace.rb
faye-0.5.3 lib/faye/util/namespace.rb
faye-0.5.2 lib/faye/util/namespace.rb
faye-0.5.1 lib/faye/util/namespace.rb
faye-0.5.0 lib/faye/util/namespace.rb
faye-0.3.4 lib/faye/namespace.rb
faye-0.3.3 lib/faye/namespace.rb
faye-0.3.2 lib/faye/namespace.rb
faye-0.3.1 lib/faye/namespace.rb
faye-0.3.0 lib/faye/namespace.rb