Class: Arara::FabIconComponent
- Inherits:
-
ActionView::Component::Base
- Object
- ActionView::Component::Base
- Arara::FabIconComponent
- Includes:
- BaseComponent
- Defined in:
- app/components/arara/fab_icon_component.rb
Instance Method Summary collapse
- #default_html_class ⇒ Object
-
#initialize(icon:, **kw) ⇒ FabIconComponent
constructor
A new instance of FabIconComponent.
Methods included from BaseComponent
#default_data_controller, #default_html_tag, #html_class, #html_content, #html_data, #html_options, #html_tag, included
Constructor Details
#initialize(icon:, **kw) ⇒ FabIconComponent
Returns a new instance of FabIconComponent.
6 7 8 9 |
# File 'app/components/arara/fab_icon_component.rb', line 6 def initialize(icon:, **kw) super(tag: "i", **kw) @icon = icon end |
Instance Method Details
#default_html_class ⇒ Object
11 12 13 |
# File 'app/components/arara/fab_icon_component.rb', line 11 def default_html_class "material-icons" end |