Class: Railsboot::StatComponent
- Inherits:
-
Component
- Object
- Component
- Railsboot::StatComponent
- Defined in:
- app/components/railsboot/stat_component.rb
Instance Method Summary collapse
-
#initialize(**html_attributes) ⇒ StatComponent
constructor
A new instance of StatComponent.
Constructor Details
#initialize(**html_attributes) ⇒ StatComponent
Returns a new instance of StatComponent.
26 27 28 29 30 31 32 33 34 |
# File 'app/components/railsboot/stat_component.rb', line 26 def initialize(**html_attributes) @html_attributes = html_attributes @html_attributes[:tag] = "div" @html_attributes[:class] = class_names( "border p-4 rounded", html_attributes[:class] ) end |