Class | Asciidoctor::Table |
In: |
lib/asciidoctor/table.rb
|
Parent: | AbstractBlock |
Public: Methods and constants for managing AsciiDoc table content in a document. It supports all three of AsciiDoc‘s table formats: psv, dsv and csv.
caption | [R] | Public: Get the caption for this table |
columns | [RW] | Public: Get/Set the columns for this table |
has_header_option | [RW] | Public: Boolean specifies whether this table has a header row |
rows | [RW] | Public: Get/Set the Rows struct for this table (encapsulates head, foot and body rows) |
Internal: Assign column widths to columns
This method rounds the percentage width values to 4 decimal places and donates the balance to the final column.
This method assumes there‘s at least one column in the columns array.
width_base - the total of the relative column values used for calculating percentage widths (default: nil)
returns nothing