Class: UI::DialogDescriptionComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::DialogDescriptionComponent
- Defined in:
- app/view_components/ui/dialog_description_component.rb
Overview
Dialog description component (ViewComponent) Description text for the dialog
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "") ⇒ DialogDescriptionComponent
constructor
A new instance of DialogDescriptionComponent.
Constructor Details
#initialize(classes: "") ⇒ DialogDescriptionComponent
Returns a new instance of DialogDescriptionComponent.
10 11 12 |
# File 'app/view_components/ui/dialog_description_component.rb', line 10 def initialize(classes: "") @classes = classes end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'app/view_components/ui/dialog_description_component.rb', line 14 def call content_tag :p, content, class: description_classes end |