Class: ContentBlockTools::Presenters::BlockPresenters::BasePresenter
- Inherits:
-
Object
- Object
- ContentBlockTools::Presenters::BlockPresenters::BasePresenter
- Includes:
- ActionView::Context, ActionView::Helpers::TextHelper, Govspeak
- Defined in:
- lib/content_block_tools/presenters/block_presenters/base_presenter.rb
Direct Known Subclasses
Contact::AddressPresenter, Contact::ContactLinkPresenter, 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, **_args) ⇒ BasePresenter
constructor
A new instance of BasePresenter.
- #render ⇒ Object
Methods included from Govspeak
Constructor Details
#initialize(item, **_args) ⇒ BasePresenter
13 14 15 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 13 def initialize(item, **_args) @item = item end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
11 12 13 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 11 def item @item end |
Instance Method Details
#render ⇒ Object
17 |
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 17 def render; end |