Class: ResourcePresenter
- Defined in:
- app/presenters/resource_presenter.rb
Direct Known Subclasses
LayoutPresenter, Resources::General::WizardPresenter, Resources::User::FormPresenter
Instance Method Summary collapse
-
#initialize(subject, options = {}) ⇒ ResourcePresenter
constructor
A new instance of ResourcePresenter.
Methods inherited from Presenter
Constructor Details
#initialize(subject, options = {}) ⇒ ResourcePresenter
Returns a new instance of ResourcePresenter.
2 3 4 5 6 |
# File 'app/presenters/resource_presenter.rb', line 2 def initialize(subject, = {}) @resource = .delete(:resource) super(subject, ) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Presenter