Class: LeanCms::SectionComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- LeanCms::SectionComponent
- Defined in:
- app/components/lean_cms/section_component.rb
Instance Attribute Summary collapse
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from BaseComponent
Instance Method Summary collapse
-
#initialize(section:, title: nil, page: nil, **options) ⇒ SectionComponent
constructor
A new instance of SectionComponent.
Constructor Details
#initialize(section:, title: nil, page: nil, **options) ⇒ SectionComponent
Returns a new instance of SectionComponent.
5 6 7 8 9 10 |
# File 'app/components/lean_cms/section_component.rb', line 5 def initialize(section:, title: nil, page: nil, **) super(page: page) @section = section @title = title @options = end |
Instance Attribute Details
#section ⇒ Object (readonly)
Returns the value of attribute section.
3 4 5 |
# File 'app/components/lean_cms/section_component.rb', line 3 def section @section end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'app/components/lean_cms/section_component.rb', line 3 def title @title end |