Method: Confg::Configuration#tmp
- Defined in:
- lib/confg/configuration.rb
#tmp(key, value) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/confg/configuration.rb', line 38 def tmp(key, value) initial = self[key] self[key] = value yield ensure self[key] = initial end |