Class: Viewable::BlockPresenter
- Inherits:
-
ViewablePresenter
- Object
- BasePresenter
- ViewablePresenter
- Viewable::BlockPresenter
- Defined in:
- app/presenters/viewable/block_presenter.rb
Instance Attribute Summary
Attributes inherited from BasePresenter
Instance Method Summary collapse
Methods inherited from ViewablePresenter
Methods inherited from BasePresenter
#initialize, #method_missing, #respond_to?
Constructor Details
This class inherits a constructor from BasePresenter
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BasePresenter
Instance Method Details
#render ⇒ Object
3 4 5 6 7 8 |
# File 'app/presenters/viewable/block_presenter.rb', line 3 def render h.instance_variable_set :@cms_view_partial, m html = h.render m.partial_path h.instance_variable_set :@cms_view_partial, nil html end |