Module: Contextuality::ObjectMethods
- Defined in:
- lib/contextuality.rb
Instance Method Summary collapse
Instance Method Details
#contextualize(variables = {}, &block) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/contextuality.rb', line 36 def contextualize variables = {}, &block ::Thread.current.contextuality.push variables result = block.call ensure ::Thread.current.contextuality.pop result end |