Class: Railsboot::Card::FooterComponent
- Inherits:
-
Railsboot::CardComponent
- Object
- Railsboot::CardComponent
- Railsboot::Card::FooterComponent
- Defined in:
- app/components/railsboot/card/footer_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**html_attributes) ⇒ FooterComponent
constructor
A new instance of FooterComponent.
Constructor Details
#initialize(**html_attributes) ⇒ FooterComponent
Returns a new instance of FooterComponent.
2 3 4 5 6 7 8 9 |
# File 'app/components/railsboot/card/footer_component.rb', line 2 def initialize(**html_attributes) @html_attributes = html_attributes @html_attributes[:class] = class_names( "card-footer", html_attributes.delete(:class) ) end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'app/components/railsboot/card/footer_component.rb', line 11 def call render(Railsboot::BaseComponent.new(tag: "div", **@html_attributes)) { content } end |