Class: Docx::Elements::Containers::TableColumn
- Inherits:
-
Object
- Object
- Docx::Elements::Containers::TableColumn
- Defined in:
- lib/docx/containers/table_column.rb
Constant Summary
Constants included from Element
Instance Attribute Summary
Attributes included from Element
Class Method Summary collapse
Instance Method Summary collapse
-
#cells ⇒ Object
Array of cells contained within row.
-
#initialize(cell_nodes, document_properties = {}, doc = nil) ⇒ TableColumn
constructor
A new instance of TableColumn.
Methods included from Element
#append_to, #at_xpath, #copy, #html_tag, included, #insert_after, #insert_before, #parent, #parent_paragraph, #prepend_to, #xpath
Methods included from Container
#blank!, #properties, #remove!
Constructor Details
#initialize(cell_nodes, document_properties = {}, doc = nil) ⇒ TableColumn
Returns a new instance of TableColumn.
15 16 17 18 19 20 21 |
# File 'lib/docx/containers/table_column.rb', line 15 def initialize(cell_nodes, document_properties = {}, doc = nil) @node = '' @properties_tag = '' @document_properties = document_properties @document = doc @cells = cell_nodes.map { |c_node| Containers::TableCell.new(c_node, @document_properties, @document) } end |
Class Method Details
.tag ⇒ Object
11 12 13 |
# File 'lib/docx/containers/table_column.rb', line 11 def self.tag 'w:gridCol' end |
Instance Method Details
#cells ⇒ Object
Array of cells contained within row
24 25 26 |
# File 'lib/docx/containers/table_column.rb', line 24 def cells @cells end |