Method: Code0::ZeroTrack::Context.push
- Defined in:
- lib/code0/zero_track/context.rb
.push(new_attributes = {}) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/code0/zero_track/context.rb', line 21 def push(new_attributes = {}) new_context = current&.merge(new_attributes) || new(new_attributes) contexts.push(new_context) new_context end |