Class: Odf::Element::TextList

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

Constant Summary collapse

VALID_OPTIONS =
{
  continue_list: 'text:continue-list',
  continue_numbering: 'text:continue-numbering',
  style_name: 'text:style-name'
}
XML_TAG =
'text:list'.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



12
13
14
# File 'lib/odf/element/text_list.rb', line 12

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

Instance Method Details

#add_list_item(options = {}) ⇒ Object



16
17
18
# File 'lib/odf/element/text_list.rb', line 16

def add_list_item(options = {})
  Odf::Element::TextListItem.build(self, options)
end