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
Constant Summary collapse
- BASE_TAG_TYPE =
:span
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.
11 12 13 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 11 def initialize(item) @item = item end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
9 10 11 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 9 def item @item end |
Instance Method Details
#render ⇒ Object
19 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 19 def render; end |
#title_content ⇒ Object
15 16 17 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 15 def title_content "#{item[:title]}: " end |