Class: Doc2Text::Odt::XmlNodes::Text::ListItem

Inherits:
Node show all
Includes:
Doc2Text::Odt::XmlNodes::Text
Defined in:
lib/doc2text/odt/odt_xml_namespaces.rb

Overview

Instance Attribute Summary

Attributes inherited from XmlBasedDocument::XmlNodes::Node

#attrs, #children, #name, #parent, #prefix, #text

Instance Method Summary collapse

Methods included from Doc2Text::Odt::XmlNodes::Text

#fetch_style, #find_style, #initialize

Methods inherited from Node

create_node, #office_text?

Methods inherited from XmlBasedDocument::XmlNodes::Node

#close, #delete, #eql?, #generic?, #has_text?, inherited, #initialize, #open, #root?, #to_s, #xml_name

Instance Method Details

#expandObject



205
206
207
208
209
# File 'lib/doc2text/odt/odt_xml_namespaces.rb', line 205

def expand
  result = "* #{@children.map(&:expand).join.strip.gsub /\n{2,}/, "\n"}\n"
  delete
  result.clone
end

#fetch_style?Boolean

Returns:

  • (Boolean)


211
212
213
# File 'lib/doc2text/odt/odt_xml_namespaces.rb', line 211

def fetch_style?
  false
end