# frozen_string_literal: true class ApplicationPresenter < SimpleDelegator attr_reader :context alias_method :object, :__getobj__ alias_method :object=, :__setobj__ delegate :view_context, to: :context, allow_nil: true def with_context(context) @context = context self end end