Method: Axlsx::StrData#to_xml_string
- Defined in:
- lib/axlsx/drawing/str_data.rb
#to_xml_string(str = "") ⇒ Object
serialize the object
31 32 33 34 35 36 37 38 |
# File 'lib/axlsx/drawing/str_data.rb', line 31 def to_xml_string(str = "") str << ('<c:' << @tag_name.to_s << '>') str << ('<c:ptCount val="' << @pt.size.to_s << '"/>') @pt.each_with_index do |value, index| value.to_xml_string index, str end str << ('</c:' << @tag_name.to_s << '>') end |