Method: Bootstrap4Helper::PageHeader#to_s

Defined in:
lib/bootstrap4_helper/page_header.rb

#to_sString

String representation of the object.

Returns:

  • (String)


29
30
31
32
33
34
35
36
37
38
# File 'lib/bootstrap4_helper/page_header.rb', line 29

def to_s
  (
    @type || config(:page_header, :h1),
    id: @id,
    class: "pb-2 mt-4 mb-2 border-bottom #{@class}",
    data: @data
  ) do
    @content.call(self)
  end
end