Class: Odf::Element::TextListItem
- Defined in:
- lib/odf/element/text_list_item.rb
Constant Summary collapse
- VALID_OPTIONS =
{ start_value: 'text:start-value', style_override: 'text:style-override', style_name: 'text:style-name' }
- XML_TAG =
'text:list-item'.freeze
Instance Attribute Summary
Attributes inherited from Abstract
Class Method Summary collapse
Instance Method Summary collapse
- #add_heading(text, options = {}) ⇒ Object
- #add_paragraph(text, options = {}) ⇒ Object
- #add_text_list(options = {}) ⇒ Object
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_item.rb', line 12 def self.build(parent, = {}) new(parent, ) end |
Instance Method Details
#add_heading(text, options = {}) ⇒ Object
16 17 18 |
# File 'lib/odf/element/text_list_item.rb', line 16 def add_heading(text, = {}) Odf::Element::Heading.build(self, text, ) end |