Class: Ragdoll::PageHeaderComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Ragdoll::PageHeaderComponent
- Defined in:
- app/components/ragdoll/page_header_component.rb
Instance Method Summary collapse
-
#initialize(title:, icon: nil, subtitle: nil) ⇒ PageHeaderComponent
constructor
A new instance of PageHeaderComponent.
Constructor Details
#initialize(title:, icon: nil, subtitle: nil) ⇒ PageHeaderComponent
Returns a new instance of PageHeaderComponent.
5 6 7 8 9 |
# File 'app/components/ragdoll/page_header_component.rb', line 5 def initialize(title:, icon: nil, subtitle: nil) @title = title @icon = icon @subtitle = subtitle end |