class RubyXL::Text
Public Instance Methods
before_write_xml()
click to toggle source
# File lib/rubyXL/objects/text.rb, line 14 def before_write_xml self.xml_space = (value.is_a?(String) && ((value =~ /\A\s/) || (value =~ /\s\Z/) || value.include?("\n"))) ? 'preserve' : nil true end
to_s()
click to toggle source
# File lib/rubyXL/objects/text.rb, line 19 def to_s value.to_s end