Class: IndexHeaderComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- IndexHeaderComponent
- Defined in:
- lib/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.
6 7 8 9 |
# File 'lib/app/components/index_header_component.rb', line 6 def initialize(title:, subtitle:) @title = title @subtitle = subtitle end |