Class: TorqueBox::Registry

Inherits:
Object
  • Object
show all
Defined in:
lib/torquebox/registry.rb

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



25
26
27
# File 'lib/torquebox/registry.rb', line 25

def [](key)
  registry[key]
end

.merge!(hash) ⇒ Object



22
23
24
# File 'lib/torquebox/registry.rb', line 22

def merge!(hash)
  registry.merge!(hash)
end

.registryObject



28
29
30
# File 'lib/torquebox/registry.rb', line 28

def registry
  @registry ||= {}
end