Method: Code0::ZeroTrack::Context.with_context
- Defined in:
- lib/code0/zero_track/context.rb
.with_context(attributes = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/code0/zero_track/context.rb', line 11 def with_context(attributes = {}) context = push(attributes) begin yield(context) ensure pop(context) end end |