Class: Idml::Elements::TableCell
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Idml::Elements::TableCell
- Defined in:
- lib/idml/elements/table_cell.rb
Overview
<TableCell> — a single cell within a table row. Carries the
cell's content type, dimensions, and any inline text content
(<CharacterStyleRange> children that carry the cell's text).
IDML's actual schema (Cell_Object in
reference-docs/schemas/package/Stories/Story.rnc) names this
element Cell and includes many more attributes; this model
captures the subset the renderer needs today.
Instance Method Summary collapse
Instance Method Details
#text_content ⇒ Object
32 33 34 |
# File 'lib/idml/elements/table_cell.rb', line 32 def text_content character_style_range.filter_map(&:text_content).join end |