Class: UI::SheetDescriptionComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::SheetDescriptionComponent
- Defined in:
- app/view_components/ui/sheet_description_component.rb
Overview
Sheet description component (ViewComponent)
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "") ⇒ SheetDescriptionComponent
constructor
A new instance of SheetDescriptionComponent.
Constructor Details
#initialize(classes: "") ⇒ SheetDescriptionComponent
Returns a new instance of SheetDescriptionComponent.
9 10 11 |
# File 'app/view_components/ui/sheet_description_component.rb', line 9 def initialize(classes: "") @classes = classes end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'app/view_components/ui/sheet_description_component.rb', line 13 def call content_tag :p, content, class: description_classes end |