class

Asciidoctor::Table

Inherits Asciidoctor::AbstractBlock < Asciidoctor::Substitutors < Asciidoctor::AbstractNode < Asciidoctor::Logging < Reference < Object

Methods and constants for managing AsciiDoc table content in a document.

Constants

DEFAULT_PRECISION = 4

Precision of column widths.

Constructors

new(parent_block : AbstractBlock, attributes : Hash(String, String) = {} of String => String)
Source

Instance methods

assign_column_widths(width_base : Float64 | Nil = nil, autowidth_cols : Array(Column) | Nil = nil) : Nil

Assign column widths based on the width base and autowidth columns.

Source
columns

The columns for this table.

Source
columns=(columns : Array(Column))

The columns for this table.

Source
create_columns(colspecs : Array(Hash(String, String | Int32))) : Nil

Creates the Column objects from the column spec.

Source
document
Source
has_header_option

Boolean specifying whether this table has a header row.

Source
has_header_option=(has_header_option : Bool)

Boolean specifying whether this table has a header row.

Source
header_row?

Returns the current state of the header option if the row being processed is the header row, otherwise false.

Source
parent_block

The parent block.

Source
rows

The Rows struct for this table.

Source
rows=(rows : Rows)

The Rows struct for this table.

Source

Nested types