Class: UI::EmptyTitleComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::EmptyTitleComponent
- Includes:
- EmptyTitleBehavior
- Defined in:
- app/view_components/ui/empty_title_component.rb
Overview
EmptyTitleComponent - ViewComponent implementation
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ EmptyTitleComponent
constructor
A new instance of EmptyTitleComponent.
Methods included from EmptyTitleBehavior
#empty_title_classes, #empty_title_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ EmptyTitleComponent
Returns a new instance of EmptyTitleComponent.
7 8 9 10 |
# File 'app/view_components/ui/empty_title_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_title_component.rb', line 12 def call tag.h3(**empty_title_html_attributes.merge(@attributes)) do content end end |