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