module IDRegistry

IDRegistry is a generic object generator and identity map for Ruby.

Constants

VERSION

Current version of IDRegistry as a Versionomy object, if the Versionomy gem is available. Otherwise, the same string value as VERSION_STRING.

VERSION_STRING

Current version of IDRegistry as a frozen string

Public Class Methods

create(&block_) click to toggle source

Create a new, empty registry with an empty configuration.

If you pass a block, it will be used to configure the registry, as if you had passed it to the config method.

# File lib/idregistry/registry.rb, line 570
def create(&block_)
  reg_ = Registry._new({}, {}, {}, {})
  reg_.config(&block_) if block_
  reg_
end