Class: UI::DrawerTitle
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::DrawerTitle
- Includes:
- DrawerTitleBehavior
- Defined in:
- app/components/ui/drawer_title.rb
Instance Method Summary collapse
-
#initialize(classes: nil, **attributes) ⇒ DrawerTitle
constructor
A new instance of DrawerTitle.
- #view_template(&block) ⇒ Object
Methods included from DrawerTitleBehavior
#drawer_title_base_classes, #drawer_title_classes, #drawer_title_html_attributes
Constructor Details
#initialize(classes: nil, **attributes) ⇒ DrawerTitle
Returns a new instance of DrawerTitle.
6 7 8 9 |
# File 'app/components/ui/drawer_title.rb', line 6 def initialize(classes: nil, **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
11 12 13 14 15 |
# File 'app/components/ui/drawer_title.rb', line 11 def view_template(&block) div(**drawer_title_html_attributes) do yield if block_given? end end |