Class: PhlexKit::ItemDescription
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::ItemDescription
- Defined in:
- app/components/phlex_kit/item/item_description.rb
Overview
See item.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ItemDescription
constructor
A new instance of ItemDescription.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ ItemDescription
Returns a new instance of ItemDescription.
4 |
# File 'app/components/phlex_kit/item/item_description.rb', line 4 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
5 |
# File 'app/components/phlex_kit/item/item_description.rb', line 5 def view_template(&) = div(**mix({ class: "pk-item-description" }, @attrs), &) |