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_deleted?, #not_enclosing?, #open, #root?, titleize, #to_s, #un_delete, #xml_name

Instance Method Details

#delete_on_close?Boolean

Returns:

  • (Boolean)


209
210
211
# File 'lib/doc2text/odt_xml_namespaces.rb', line 209

def delete_on_close?
  false
end

#expandObject



199
200
201
202
203
# File 'lib/doc2text/odt_xml_namespaces.rb', line 199

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

#fetch_style?Boolean

Returns:

  • (Boolean)


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

def fetch_style?
  false
end