Class: UI::CardAction
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::CardAction
- Includes:
- CardActionBehavior
- Defined in:
- app/components/ui/card_action.rb
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ CardAction
constructor
A new instance of CardAction.
- #view_template ⇒ Object
Methods included from CardActionBehavior
#card_action_classes, #card_action_html_attributes, #render_card_action
Constructor Details
#initialize(classes: "", **attributes) ⇒ CardAction
Returns a new instance of CardAction.
6 7 8 9 |
# File 'app/components/ui/card_action.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_action.rb', line 11 def view_template(&) div(**card_action_html_attributes.deep_merge(@attributes), &) end |