Module: Dependencies
- Defined in:
- lib/core_ex.rb,
lib/core_ex.rb
Overview
class Proc
Defined Under Namespace
Classes: ConstantLoadPath
Class Method Summary collapse
Class Method Details
.change_mechanism(arg, &block) ⇒ Object
217 218 219 220 221 222 223 224 225 |
# File 'lib/core_ex.rb', line 217 def self.change_mechanism ( arg, &block ) save = mechanism begin self.mechanism = arg block[] ensure self.mechanism = save end end |