Class: TorqueBox::ComponentManager

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

Class Method Summary (collapse)

Class Method Details

+ (Object) lookup_component(name)



21
22
23
24
# File 'core/lib/torquebox/component_manager.rb', line 21

def lookup_component(name)
  @components ||= {}
  @components[name]
end

+ (Object) register_component(name, component)



26
27
28
29
# File 'core/lib/torquebox/component_manager.rb', line 26

def register_component(name, component)
  @components ||= {}
  @components[name] = component
end