Class: PageHeaderPresenter
- Inherits:
-
ExplicitDelegator
- Object
- ExplicitDelegator
- PageHeaderPresenter
- Includes:
- ContentImage
- Defined in:
- app/presenters/page_header_presenter.rb
Constant Summary
Constants included from ContentImage
ContentImage::DEFAULT_IMAGE, ContentImage::MISSING_WOOPLE_IMAGE
Instance Method Summary collapse
Methods included from ContentImage
Methods inherited from ExplicitDelegator
enforce_definitions, #enforced_methods, #ensure_defined, #initialize
Constructor Details
This class inherits a constructor from ExplicitDelegator
Instance Method Details
#completed_class ⇒ Object
17 18 19 |
# File 'app/presenters/page_header_presenter.rb', line 17 def completed_class 'completed' if @delegate.completed? end |
#image_class ⇒ Object
13 14 15 |
# File 'app/presenters/page_header_presenter.rb', line 13 def image_class 'page-header-with-image' if has_image? end |
#title ⇒ Object
9 10 11 |
# File 'app/presenters/page_header_presenter.rb', line 9 def title name || @delegate.title end |