Class: Rbrc::Registry

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

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object



9
10
11
# File 'lib/rbrc/registry.rb', line 9

def [](name)
  @configs[name] if @configs
end

.register_config(name, options = {}) ⇒ Object



4
5
6
7
# File 'lib/rbrc/registry.rb', line 4

def register_config(name, options={})
  @configs ||= {}
  @configs[name] = Config.new(name, options)
end