Class: Doc2Text::Odt::XmlNodes::Text::Span

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

Class Method Summary collapse

Instance Method Summary collapse

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

#fetch_style, #fetch_style?, #find_style, #initialize

Methods included from Node

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

Class Method Details

.style_familyObject



161
162
163
# File 'lib/doc2text/odt_xml_namespaces.rb', line 161

def self.style_family
  'text'
end

Instance Method Details

#closeObject



169
170
171
# File 'lib/doc2text/odt_xml_namespaces.rb', line 169

def close
  @enclosing_style.reverse.join
end

#openObject



165
166
167
# File 'lib/doc2text/odt_xml_namespaces.rb', line 165

def open
  @enclosing_style.join
end