Class: ContentBlockTools::Presenters::BlockPresenters::BasePresenter

Inherits:
Object
  • Object
show all
Includes:
ActionView::Context, ActionView::Helpers::TextHelper, Govspeak
Defined in:
lib/content_block_tools/presenters/block_presenters/base_presenter.rb

Constant Summary collapse

BASE_TAG_TYPE =
:span

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Govspeak

#render_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

#itemObject (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

#renderObject



17
# File 'lib/content_block_tools/presenters/block_presenters/base_presenter.rb', line 17

def render; end