Class: Protos::Table::Head

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/table/head.rb

Constant Summary collapse

ALLIGNMENT =

DOCS: The head of a table

{
  left: "text-left",
  right: "text-right",
  center: "text-center"
}.freeze

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject



19
20
21
# File 'lib/protos/table/head.rb', line 19

def view_template(&)
  th(**attrs, &)
end