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

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

Overview

Instance Attribute Summary

Attributes included from Node

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

Instance Method Summary collapse

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

#fetch_style, #find_style, #initialize

Methods included from Node

#close, create_node, #delete, #eql?, #generic?, #has_text?, included, #initialize, #not_enclosing?, #office_text?, #open, #root?, titleize, #to_s, #xml_name

Instance Method Details

#expandObject



179
180
181
182
183
# File 'lib/doc2text/odt_xml_namespaces.rb', line 179

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

#fetch_style?Boolean

Returns:

  • (Boolean)


185
186
187
# File 'lib/doc2text/odt_xml_namespaces.rb', line 185

def fetch_style?
  false
end