Class: Protos::Table::Caption

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

Constant Summary collapse

Sides =

DOCS: The caption of a table

Types::Coercible::Symbol.enum(:bottom, :top)
SIDES =
{
  bottom: "caption-bottom",
  top: "caption-top"
}.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



20
21
22
# File 'lib/protos/table/caption.rb', line 20

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