Class: IndexHeaderComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- IndexHeaderComponent
- Defined in:
- app/components/index_header_component.rb
Instance Method Summary collapse
-
#initialize(title:, subtitle:) ⇒ IndexHeaderComponent
constructor
A new instance of IndexHeaderComponent.
Constructor Details
#initialize(title:, subtitle:) ⇒ IndexHeaderComponent
Returns a new instance of IndexHeaderComponent.
7 8 9 10 |
# File 'app/components/index_header_component.rb', line 7 def initialize(title:, subtitle:) @title = title @subtitle = subtitle end |