Method: Axlsx::NumVal#to_xml_string
- Defined in:
- lib/axlsx/drawing/num_val.rb
#to_xml_string(idx, str = "") ⇒ Object
serialize the object
27 28 29 30 |
# File 'lib/axlsx/drawing/num_val.rb', line 27 def to_xml_string(idx, str = "") Axlsx::validate_unsigned_int(idx) str << ('<c:pt idx="' << idx.to_s << '" formatCode="' << format_code << '"><c:v>' << v.to_s << '</c:v></c:pt>') end |