Class: Abc::Html::PagePresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/abc/html/page_presenter.rb

Instance Method Summary collapse

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

#titleObject


8
9
10
# File 'app/presenters/abc/html/page_presenter.rb', line 8

def title
  @page.title
end