Class: Anchor::Panel::HeaderComponent
- Defined in:
- app/components/anchor/panel/header_component.rb
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(active:) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Methods inherited from Component
Methods included from ViewHelper
Methods included from FetchOrFallbackHelper
Constructor Details
#initialize(active:) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
4 5 6 7 8 |
# File 'app/components/anchor/panel/header_component.rb', line 4 def initialize(active:) @active = active super end |
Instance Method Details
#active? ⇒ Boolean
10 11 12 |
# File 'app/components/anchor/panel/header_component.rb', line 10 def active? @active == true end |