Class: Cell::ViewModel::Context
- Inherits:
-
Object
- Object
- Cell::ViewModel::Context
- Defined in:
- lib/cell/view_model.rb
Overview
DISCUSS: we could use the same mechanism as TRB::Skills here for speed at runtime?
Class Method Summary collapse
-
.[](options, context) ⇒ Object
Only dup&merge when :context was passed in parent.cell(context: ..) Otherwise we can simply pass on the old context.
Class Method Details
.[](options, context) ⇒ Object
Only dup&merge when :context was passed in parent.cell(context: ..) Otherwise we can simply pass on the old context.
82 83 84 85 |
# File 'lib/cell/view_model.rb', line 82 def self.[](, context) return context unless context.dup.merge() # DISCUSS: should we create a real Context object here, to make it overridable? end |