Class: Railsboot::BaseComponent
- Defined in:
- app/components/railsboot/base_component.rb
Constant Summary
Constants inherited from Component
Component::COLORS, Component::DEFAULT_COLOR
Instance Method Summary collapse
-
#initialize(tag:, **html_attributes) ⇒ BaseComponent
constructor
A new instance of BaseComponent.
Constructor Details
#initialize(tag:, **html_attributes) ⇒ BaseComponent
Returns a new instance of BaseComponent.
2 3 4 5 |
# File 'app/components/railsboot/base_component.rb', line 2 def initialize(tag:, **html_attributes) @tag = tag @html_attributes = html_attributes end |