Class: Locomotive::EditableShortTextPresenter
- Inherits:
-
EditableElementPresenter
- Object
- BasePresenter
- EditableElementPresenter
- Locomotive::EditableShortTextPresenter
- Defined in:
- app/presenters/locomotive/editable_short_text_presenter.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BasePresenter
Instance Method Summary collapse
-
#content ⇒ Object
properties ##.
-
#default_content=(value) ⇒ Object
other getters / setters ##.
-
#set_attributes ⇒ Object
callbacks ##.
Methods inherited from EditableElementPresenter
#block_name, #label, #slug, #type
Methods inherited from BasePresenter
#ability?, #after_initialize, getters_to_hash, #id, setters_to_hash, #site
Methods included from Presentable
#after_initialize, #as_json, #attributes=, #getters, #initialize, #property_options, #setters
Instance Method Details
#content ⇒ Object
properties ##
6 |
# File 'app/presenters/locomotive/editable_short_text_presenter.rb', line 6 properties :content, :default_content |
#default_content=(value) ⇒ Object
other getters / setters ##
13 14 15 |
# File 'app/presenters/locomotive/editable_short_text_presenter.rb', line 13 def default_content=(value) @default_content = value end |
#set_attributes ⇒ Object
callbacks ##
9 |
# File 'app/presenters/locomotive/editable_short_text_presenter.rb', line 9 set_callback :set_attributes, :after, :set_default_content |