Class: Odf::Element::Table

Inherits:
Abstract show all
Defined in:
lib/odf/element/table.rb

Constant Summary collapse

VALID_OPTIONS =
{
  table_name: 'table:name'
}
XML_TAG =
'table:table'.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



10
11
12
# File 'lib/odf/element/table.rb', line 10

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

Instance Method Details

#add_table_row(options = {}) ⇒ Object



14
15
16
# File 'lib/odf/element/table.rb', line 14

def add_table_row(options = {})
  Odf::Element::TableRow.build(self, options)
end