Method: Configatron::Store#protect
- Defined in:
- lib/gems/configatron-2.2.2/lib/configatron/store.rb
#protect(name) ⇒ Object
Prevents a parameter from being reassigned. If called on a ‘namespace’ then all parameters below it will be protected as well.
115 116 117 |
# File 'lib/gems/configatron-2.2.2/lib/configatron/store.rb', line 115 def protect(name) @_protected << name.to_sym end |