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