Class: UI::SheetTitle
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::SheetTitle
- Defined in:
- app/components/ui/sheet_title.rb
Instance Method Summary collapse
-
#initialize(classes: nil) ⇒ SheetTitle
constructor
A new instance of SheetTitle.
- #view_template(&block) ⇒ Object
Constructor Details
#initialize(classes: nil) ⇒ SheetTitle
Returns a new instance of SheetTitle.
4 5 6 |
# File 'app/components/ui/sheet_title.rb', line 4 def initialize(classes: nil) @classes = classes end |
Instance Method Details
#view_template(&block) ⇒ Object
8 9 10 11 12 |
# File 'app/components/ui/sheet_title.rb', line 8 def view_template(&block) h2(class: title_classes) do yield if block_given? end end |