Class: Anydoc::Table
- Inherits:
-
Data
- Object
- Data
- Anydoc::Table
- 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
-
#grid ⇒ Array<Array<CellSlot>>
readonly
Rows of slots.
-
#header_rows ⇒ Integer
readonly
Number of leading rows that are header rows (0 = no header).
-
#kind ⇒ Symbol
readonly
:data | :layout.
Instance Attribute Details
#grid ⇒ Array<Array<CellSlot>> (readonly)
Returns 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_rows ⇒ Integer (readonly)
Returns 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 |
#kind ⇒ Symbol (readonly)
:data | :layout
167 168 |
# File 'lib/anydoc/document.rb', line 167 class Table < Data.define(:grid, :header_rows, :kind) end |