Class: ActiveElement::Components::PageDescription
- Inherits:
-
Object
- Object
- ActiveElement::Components::PageDescription
- Defined in:
- lib/active_element/components/page_description.rb
Overview
Provides a description of a page, intended to be used underneath the ‘page_title` component.
Instance Method Summary collapse
-
#initialize(controller, content:) ⇒ PageDescription
constructor
A new instance of PageDescription.
- #locals ⇒ Object
- #template ⇒ Object
Constructor Details
#initialize(controller, content:) ⇒ PageDescription
Returns a new instance of PageDescription.
7 8 9 10 |
# File 'lib/active_element/components/page_description.rb', line 7 def initialize(controller, content:) @controller = controller @content = content end |
Instance Method Details
#locals ⇒ Object
16 17 18 19 20 21 |
# File 'lib/active_element/components/page_description.rb', line 16 def locals { component: self, content: content } end |
#template ⇒ Object
12 13 14 |
# File 'lib/active_element/components/page_description.rb', line 12 def template 'active_element/components/page_description' end |