Method: Axlsx::NumDataSource#to_xml_string

Defined in:
lib/axlsx/drawing/num_data_source.rb

#to_xml_string(str = "") ⇒ Object

serialize the object

Parameters:

  • str (String) (defaults to: "")


48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/axlsx/drawing/num_data_source.rb', line 48

def to_xml_string(str="")
  str << ('<c:' << tag_name.to_s << '>')
  if @f
    str << ('<c:' << @ref_tag_name.to_s << '>')
    str << ('<c:f>' << @f.to_s << '</c:f>')
  end
  @data.to_xml_string str
  if @f
    str << ('</c:' << @ref_tag_name.to_s << '>')
  end
  str << ('</c:' << tag_name.to_s << '>')
end