Module: Pakyow::UI::Framework::PresenterForContext Private
- Defined in:
- lib/pakyow/ui/framework.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#presenter_for_context(presenter_class, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/pakyow/ui/framework.rb', line 20 def presenter_for_context(presenter_class, context) if context.presentables.include?(:__ui_transform) instance = find_ui_presenter_for(presenter_class).new( context.view, app: context.app, presentables: context.presentables ) instance.instance_variable_set(:@calls, context.calls) instance else super end end |