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
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field) ⇒ BasePresenter
constructor
A new instance of BasePresenter.
- #render ⇒ Object
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
#field ⇒ Object (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
#render ⇒ Object
14 15 16 |
# File 'lib/content_block_tools/presenters/field_presenters/base_presenter.rb', line 14 def render field end |