Class: UI::SheetTitle

Inherits:
Phlex::HTML
  • Object
show all
Defined in:
app/components/ui/sheet_title.rb

Instance Method Summary collapse

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