Class: ContentBlockTools::Presenters::FieldPresenters::BasePresenter

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

Direct Known Subclasses

Contact::EmailAddressPresenter

Constant Summary collapse

BASE_TAG_TYPE =
:span

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, **_args) ⇒ BasePresenter

Returns a new instance of BasePresenter.



11
12
13
# File 'lib/content_block_tools/presenters/field_presenters/base_presenter.rb', line 11

def initialize(field, **_args)
  @field = field
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



9
10
11
# File 'lib/content_block_tools/presenters/field_presenters/base_presenter.rb', line 9

def field
  @field
end

Instance Method Details

#renderObject



15
16
17
# File 'lib/content_block_tools/presenters/field_presenters/base_presenter.rb', line 15

def render
  field
end