Class: UI::ItemDescriptionComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::ItemDescriptionComponent
- Includes:
- ItemDescriptionBehavior
- Defined in:
- app/view_components/ui/item_description_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ ItemDescriptionComponent
constructor
A new instance of ItemDescriptionComponent.
Methods included from ItemDescriptionBehavior
#item_description_classes, #item_description_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ ItemDescriptionComponent
Returns a new instance of ItemDescriptionComponent.
6 7 8 9 |
# File 'app/view_components/ui/item_description_component.rb', line 6 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'app/view_components/ui/item_description_component.rb', line 11 def call content_tag :p, content, **item_description_html_attributes end |