Class: Anchor::PanelComponent
- Defined in:
- app/components/anchor/panel_component.rb
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(active: false) ⇒ PanelComponent
constructor
A new instance of PanelComponent.
Methods inherited from Component
Methods included from ViewHelper
Methods included from FetchOrFallbackHelper
Constructor Details
#initialize(active: false) ⇒ PanelComponent
Returns a new instance of PanelComponent.
10 11 12 13 14 |
# File 'app/components/anchor/panel_component.rb', line 10 def initialize(active: false) @active = active super end |
Instance Method Details
#active? ⇒ Boolean
16 17 18 |
# File 'app/components/anchor/panel_component.rb', line 16 def active? @active == true end |