Class: Odf::Element::TableRow

Inherits:
Abstract
  • Object
show all
Defined in:
lib/odf/element/table_row.rb

Constant Summary collapse

VALID_OPTIONS =
{}
XML_TAG =
'table:table-row'.freeze

Instance Attribute Summary

Attributes inherited from Abstract

#parent, #root

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Abstract

#document, #initialize, #valid_options, #xml_tag

Constructor Details

This class inherits a constructor from Odf::Element::Abstract

Class Method Details

.build(parent, options = {}) ⇒ Object



7
8
9
# File 'lib/odf/element/table_row.rb', line 7

def self.build(parent, options = {})
  new(parent, options)
end

Instance Method Details

#add_cell(content, options = {}) ⇒ Object



11
12
13
# File 'lib/odf/element/table_row.rb', line 11

def add_cell(content, options = {})
  Odf::Element::TableCell.build(self, content, options)
end