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