Class: Anchor::IconComponent
- Defined in:
- app/components/anchor/icon_component.rb
Instance Method Summary collapse
-
#initialize(icon:, **kwargs) ⇒ IconComponent
constructor
A new instance of IconComponent.
Methods inherited from Component
Methods included from ViewHelper
Methods included from FetchOrFallbackHelper
Constructor Details
#initialize(icon:, **kwargs) ⇒ IconComponent
Returns a new instance of IconComponent.
3 4 5 6 7 |
# File 'app/components/anchor/icon_component.rb', line 3 def initialize(icon:, **kwargs) @icon = icon super end |