Method: Configatron::Store#lock
- Defined in:
- lib/gems/configatron-2.2.2/lib/configatron/store.rb
#lock(name) ⇒ Object
Prevents a namespace from having new parameters set. The lock is applied recursively to any namespaces below it.
144 145 146 147 148 |
# File 'lib/gems/configatron-2.2.2/lib/configatron/store.rb', line 144 def lock(name) namespace = @_store[name.to_sym] raise ArgumentError, "Namespace #{name.inspect} does not exist" if namespace.nil? namespace.lock! end |