Class: Coradoc::CoreModel::TableRow
- Defined in:
- lib/coradoc/core_model/table.rb
Overview
Represents a row in a table
A table row contains multiple cells and can be a header row or a data row.
Instance Attribute Summary collapse
-
#cells ⇒ Array<TableCell>
Collection of cells in the row.
-
#header ⇒ Boolean
Whether this is a header row.
Attributes inherited from Base
#element_attributes, #id, #metadata_entries, #title
Method Summary
Methods inherited from Base
#accept, #attr, #metadata, #semantically_equivalent?, #set_attr, #set_metadata
Instance Attribute Details
#cells ⇒ Array<TableCell>
Returns collection of cells in the row.
99 |
# File 'lib/coradoc/core_model/table.rb', line 99 attribute :cells, TableCell, collection: true |
#header ⇒ Boolean
Returns whether this is a header row.
103 |
# File 'lib/coradoc/core_model/table.rb', line 103 attribute :header, :boolean, default: -> { false } |