Class: Card::CardComponent::FooterComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Card::CardComponent::FooterComponent
- Defined in:
- app/components/card/card_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ FooterComponent
constructor
A new instance of FooterComponent.
Constructor Details
#initialize(**options) ⇒ FooterComponent
Returns a new instance of FooterComponent.
42 43 44 45 46 47 |
# File 'app/components/card/card_component.rb', line 42 def initialize(**) @classes = [:classes] @styles = [:styles] @default_classses = 'card-footer text-muted' end |
Instance Method Details
#call ⇒ Object
49 50 51 52 53 54 55 56 57 58 |
# File 'app/components/card/card_component.rb', line 49 def call content_tag(:div, content, class: Card.default_plus_passed_classes( @default_classses, @classes ), style: @styles ) end |