Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/lspace/core_ext.rb
Instance Method Summary collapse
-
#in_lspace ⇒ Proc
Preserve LSpace when this Proc is run.
Instance Method Details
#in_lspace ⇒ Proc
Preserve LSpace when this Proc is run. Returns a new Proc, a closure that re-enters the current LSpace when it is called.
79 80 81 |
# File 'lib/lspace/core_ext.rb', line 79 def in_lspace LSpace.preserve(&self) end |