Sha256: d1f49e3fb6fed5e0be688bd54aefe2323d807b09c80f9bdb2c8a8b79f6d14de3

Contents?: true

Size: 202 Bytes

Versions: 14

Compression:

Stored size: 202 Bytes

Contents

class Bogus::FakeRegistry
  def initialize
    @registry = {}
  end

  def store(name, object)
    @registry[object.object_id] = name
  end

  def name(object)
    @registry[object.object_id]
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bogus-0.1.7 lib/bogus/fakes/fake_registry.rb
bogus-0.1.6 lib/bogus/fakes/fake_registry.rb
bogus-0.1.5 lib/bogus/fakes/fake_registry.rb
bogus-0.1.4 lib/bogus/fakes/fake_registry.rb
bogus-0.1.3 lib/bogus/fake_registry.rb
bogus-0.1.2 lib/bogus/fake_registry.rb
bogus-0.1.1 lib/bogus/fake_registry.rb
bogus-0.1.0 lib/bogus/fake_registry.rb
bogus-0.0.4 lib/bogus/fake_registry.rb
bogus-0.0.3 lib/bogus/fake_registry.rb
bogus-0.0.3.rc.2 lib/bogus/fake_registry.rb
bogus-0.0.3.rc.1 lib/bogus/fake_registry.rb
bogus-0.0.2 lib/bogus/fake_registry.rb
bogus-0.0.1 lib/bogus/fake_registry.rb