Class: UI::CardContent
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::CardContent
- Includes:
- CardContentBehavior
- Defined in:
- app/components/ui/card_content.rb
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ CardContent
constructor
A new instance of CardContent.
- #view_template ⇒ Object
Methods included from CardContentBehavior
#card_content_classes, #card_content_html_attributes, #render_card_content
Constructor Details
#initialize(classes: "", **attributes) ⇒ CardContent
Returns a new instance of CardContent.
6 7 8 9 |
# File 'app/components/ui/card_content.rb', line 6 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template ⇒ Object
11 12 13 |
# File 'app/components/ui/card_content.rb', line 11 def view_template(&) div(**card_content_html_attributes.deep_merge(@attributes), &) end |