Class: Anydoc::Table

Inherits:
Data
  • Object
show all
Defined in:
lib/anydoc/document.rb,
sig/anydoc.rbs

Overview

A table as a canonical grid: every logical grid position appears exactly once. Content and spans live on the origin slot, and each position a span covers holds a :covered slot pointing back at that origin.

Instance Attribute Summary collapse

Instance Attribute Details

#gridArray<Array<CellSlot>> (readonly)

Returns rows of slots. Rows may differ in length when the source is ragged.

Returns:

  • (Array<Array<CellSlot>>)

    rows of slots. Rows may differ in length when the source is ragged.



167
168
# File 'lib/anydoc/document.rb', line 167

class Table < Data.define(:grid, :header_rows, :kind)
end

#header_rowsInteger (readonly)

Returns number of leading rows that are header rows (0 = no header).

Returns:

  • (Integer)

    number of leading rows that are header rows (0 = no header).



167
168
# File 'lib/anydoc/document.rb', line 167

class Table < Data.define(:grid, :header_rows, :kind)
end

#kindSymbol (readonly)

:data | :layout

Returns:

  • (Symbol)


167
168
# File 'lib/anydoc/document.rb', line 167

class Table < Data.define(:grid, :header_rows, :kind)
end