Class: TypeStation::BasePresenter
- Inherits:
-
Object
- Object
- TypeStation::BasePresenter
- Defined in:
- app/presenters/type_station/base_presenter.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(object, template, options = {}) ⇒ BasePresenter
constructor
A new instance of BasePresenter.
Constructor Details
#initialize(object, template, options = {}) ⇒ BasePresenter
Returns a new instance of BasePresenter.
4 5 6 7 8 |
# File 'app/presenters/type_station/base_presenter.rb', line 4 def initialize(object, template, = {}) @object = object @template = template @options = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object (private)
26 27 28 |
# File 'app/presenters/type_station/base_presenter.rb', line 26 def method_missing(*args, &block) @template.send(*args, &block) end |