Class: Anchor::IconComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/anchor/icon_component.rb

Instance Method Summary collapse

Methods inherited from Component

generate_id

Methods included from ViewHelper

#text_prose

Methods included from FetchOrFallbackHelper

#fetch_or_fallback

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