Class: Abc::Html::PagePresenter
- Inherits:
-
Object
- Object
- Abc::Html::PagePresenter
- Defined in:
- app/presenters/abc/html/page_presenter.rb
Instance Method Summary collapse
-
#initialize(page) ⇒ PagePresenter
constructor
A new instance of PagePresenter.
- #title ⇒ Object
Constructor Details
#initialize(page) ⇒ PagePresenter
Returns a new instance of PagePresenter.
4 5 6 |
# File 'app/presenters/abc/html/page_presenter.rb', line 4 def initialize(page) @page = page end |
Instance Method Details
#title ⇒ Object
8 9 10 |
# File 'app/presenters/abc/html/page_presenter.rb', line 8 def title @page.title end |