Method: RightConf::Configurator::ClassMethods#register

Defined in:
lib/rconf/configurator.rb

#register(key) ⇒ Object

Associate configurator with given key

Parameters

key(Symbol)

Key configurator should be associated with

Return

true

Always return true



42
43
44
45
46
# File 'lib/rconf/configurator.rb', line 42

def register(key)
  ConfiguratorRegistry[key] = self
  @key = key
  true
end