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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ BasePresenter

Returns a new instance of BasePresenter.



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

def initialize(field)
  @field = field
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



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

def field
  @field
end

Instance Method Details

#renderObject



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

def render
  field
end