Class: Uniword::Wordprocessingml::TableRow
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Uniword::Wordprocessingml::TableRow
- Defined in:
- lib/uniword/wordprocessingml/table_row.rb
Overview
Table row
Generated from OOXML schema: wordprocessingml.yml Element: <w:tr>
Instance Attribute Summary collapse
-
#header ⇒ Object
Header flag for table rows (not serialized, runtime only).
Instance Method Summary collapse
-
#accept(visitor) ⇒ void
Accept a visitor (Visitor pattern).
-
#cell_count ⇒ Integer
Get cell count.
-
#header? ⇒ Boolean
Predicate for header flag.
Instance Attribute Details
#header ⇒ Object
Header flag for table rows (not serialized, runtime only)
25 26 27 |
# File 'lib/uniword/wordprocessingml/table_row.rb', line 25 def header @header end |
Instance Method Details
#accept(visitor) ⇒ void
This method returns an undefined value.
Accept a visitor (Visitor pattern)
58 59 60 |
# File 'lib/uniword/wordprocessingml/table_row.rb', line 58 def accept(visitor) visitor.visit_table_row(self) end |
#cell_count ⇒ Integer
Get cell count
50 51 52 |
# File 'lib/uniword/wordprocessingml/table_row.rb', line 50 def cell_count cells.count end |
#header? ⇒ Boolean
Predicate for header flag
28 29 30 |
# File 'lib/uniword/wordprocessingml/table_row.rb', line 28 def header? !!@header end |