Class: Protos::Table::Cell

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

Constant Summary collapse

ALLIGNMENT =

DOCS: A single cell in 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/cell.rb', line 19

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