Class: ContentBlockTools::Presenters::BlockPresenters::BasePresenter
- Inherits:
-
Object
- Object
- ContentBlockTools::Presenters::BlockPresenters::BasePresenter
- Includes:
- ActionView::Context, ActionView::Helpers::TextHelper
- Defined in:
- lib/content_block_tools/presenters/block_presenters/base_presenter.rb
Direct Known Subclasses
Contact::AddressPresenter, Contact::ContactFormPresenter, Contact::EmailAddressPresenter, Contact::TelephonePresenter
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
Instance Method Summary collapse
-
#initialize(item) ⇒ BasePresenter
constructor
A new instance of BasePresenter.
- #render ⇒ Object
- #title_content ⇒ Object
Constructor Details
#initialize(item) ⇒ BasePresenter
Returns a new instance of BasePresenter.
10 11 12 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 10 def initialize(item) @item = item end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
8 9 10 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 8 def item @item end |
Instance Method Details
#render ⇒ Object
18 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 18 def render; end |
#title_content ⇒ Object
14 15 16 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 14 def title_content "#{item[:title]}: " end |