Class: Georgia::Presenter
- Inherits:
-
Object
- Object
- Georgia::Presenter
- Defined in:
- app/presenters/georgia/presenter.rb
Direct Known Subclasses
ActiveFacetPresenter, FacetPresenter, ListFacetPresenter, PageActionsPresenter, PaginationPresenter, Portlet, SidebarLinkPresenter, WarningMessage
Instance Attribute Summary collapse
-
#view_context ⇒ Object
readonly
Returns the value of attribute view_context.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Presenter
constructor
A new instance of Presenter.
Constructor Details
#initialize(*args) ⇒ Presenter
Returns a new instance of Presenter.
6 7 8 |
# File 'app/presenters/georgia/presenter.rb', line 6 def initialize *args @view_context = args.first end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object (private)
12 13 14 |
# File 'app/presenters/georgia/presenter.rb', line 12 def method_missing(*args, &block) view_context.send(*args, &block) end |
Instance Attribute Details
#view_context ⇒ Object (readonly)
Returns the value of attribute view_context.
4 5 6 |
# File 'app/presenters/georgia/presenter.rb', line 4 def view_context @view_context end |