Method: Button::Component#initialize
- Defined in:
- app/components/lookbook/button/component.rb
#initialize(id: nil, icon: nil, **html_attrs) ⇒ Component
Returns a new instance of Component.
7 8 9 10 11 |
# File 'app/components/lookbook/button/component.rb', line 7 def initialize(id: nil, icon: nil, **html_attrs) @id = id @icon = icon @button_attrs = html_attrs end |