Class: AhoyCaptain::Tables::Headers::HeaderComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AhoyCaptain::Tables::Headers::HeaderComponent
- Defined in:
- app/components/ahoy_captain/tables/headers/header_component.rb
Instance Method Summary collapse
- #fixed_height? ⇒ Boolean
-
#initialize(category_name:, unit_name:) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Constructor Details
#initialize(category_name:, unit_name:) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
5 6 7 8 |
# File 'app/components/ahoy_captain/tables/headers/header_component.rb', line 5 def initialize(category_name:, unit_name:) @category_name = category_name @unit_name = unit_name end |
Instance Method Details
#fixed_height? ⇒ Boolean
10 11 12 |
# File 'app/components/ahoy_captain/tables/headers/header_component.rb', line 10 def fixed_height? true end |