Class: ContentBlockTools::Presenters::FieldPresenters::BasePresenter
- Inherits:
-
Object
- Object
- ContentBlockTools::Presenters::FieldPresenters::BasePresenter
- Includes:
- ActionView::Context, ActionView::Helpers::TagHelper
- Defined in:
- lib/content_block_tools/presenters/field_presenters/base_presenter.rb
Direct Known Subclasses
Constant Summary collapse
- BASE_TAG_TYPE =
:span
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field, **_args) ⇒ BasePresenter
constructor
A new instance of BasePresenter.
- #render ⇒ Object
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
#field ⇒ Object (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
#render ⇒ Object
15 16 17 |
# File 'lib/content_block_tools/presenters/field_presenters/base_presenter.rb', line 15 def render field end |