Class: LayoutPresenter

Inherits:
ResourcePresenter show all
Defined in:
app/presenters/layout_presenter.rb

Direct Known Subclasses

Layout::ApplicationPresenter

Instance Method Summary collapse

Methods inherited from ResourcePresenter

#initialize

Methods inherited from Presenter

#initialize, #set_option, #set_options

Constructor Details

This class inherits a constructor from ResourcePresenter

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Presenter

Instance Method Details

#table_presenter(new_subject) ⇒ Object



2
3
4
# File 'app/presenters/layout_presenter.rb', line 2

def table_presenter(new_subject)
  @table_presenter = Shared::Collection::TablePresenter.new(new_subject) 
end

#table_presenter=(presenter) ⇒ Object



6
7
8
# File 'app/presenters/layout_presenter.rb', line 6

def table_presenter=(presenter)
  @table_presenter = presenter 
end