Class: UI::EmptyDescriptionComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::EmptyDescriptionComponent
- Includes:
- EmptyDescriptionBehavior
- Defined in:
- app/view_components/ui/empty_description_component.rb
Overview
EmptyDescriptionComponent - ViewComponent implementation
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ EmptyDescriptionComponent
constructor
A new instance of EmptyDescriptionComponent.
Methods included from EmptyDescriptionBehavior
#empty_description_classes, #empty_description_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ EmptyDescriptionComponent
Returns a new instance of EmptyDescriptionComponent.
7 8 9 10 |
# File 'app/view_components/ui/empty_description_component.rb', line 7 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'app/view_components/ui/empty_description_component.rb', line 12 def call tag.p(**empty_description_html_attributes.merge(@attributes)) do content end end |