class Cell::ViewModel::Context
DISCUSS: we could use the same mechanism as TRB::Skills here for speed at runtime?
Public Class Methods
[](options, context)
click to toggle source
Only dup&merge when :context was passed in parent.cell(context: ..) Otherwise we can simply pass on the old context.
# File lib/cell/view_model.rb, line 82 def self.[](options, context) return context unless options context.dup.merge(options) # DISCUSS: should we create a real Context object here, to make it overridable? end