Class: Simpre::Presenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Simpre::Presenter
- Includes:
- Helper
- Defined in:
- lib/simpre/presenter.rb
Instance Method Summary collapse
- #h ⇒ Object
-
#initialize(model, view) ⇒ Presenter
constructor
A new instance of Presenter.
Methods included from Helper
Constructor Details
#initialize(model, view) ⇒ Presenter
Returns a new instance of Presenter.
7 8 9 10 11 |
# File 'lib/simpre/presenter.rb', line 7 def initialize(model, view) @model = model @view = view super(@model) end |
Instance Method Details
#h ⇒ Object
13 14 15 |
# File 'lib/simpre/presenter.rb', line 13 def h @view end |