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