Class: RubyXL::RichText

Inherits:
OOXMLObject show all
Defined in:
lib/rubyXL/objects/text.rb

Overview

Instance Method Summary collapse

Methods inherited from OOXMLObject

#before_write_xml, define_attribute, define_child_node, define_element_name, #dup, #index_in_collection, #initialize, obtain_class_variable, parse, set_countable, #write_xml

Constructor Details

This class inherits a constructor from RubyXL::OOXMLObject

Instance Method Details

#to_sObject



79
80
81
82
83
# File 'lib/rubyXL/objects/text.rb', line 79

def to_s
  str = t.to_s
  r && r.each { |rtr| str << rtr.to_s if rtr }
  str
end