Class: UI::CardContentComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::CardContentComponent
- Includes:
- CardContentBehavior
- Defined in:
- app/view_components/ui/card_content_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ CardContentComponent
constructor
A new instance of CardContentComponent.
Methods included from CardContentBehavior
#card_content_classes, #card_content_html_attributes, #render_card_content
Constructor Details
#initialize(classes: "", **attributes) ⇒ CardContentComponent
Returns a new instance of CardContentComponent.
6 7 8 9 |
# File 'app/view_components/ui/card_content_component.rb', line 6 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'app/view_components/ui/card_content_component.rb', line 11 def call render_card_content { content } end |