diff options
Diffstat (limited to 'lib/axlsx/drawing/num_data.rb')
| -rw-r--r-- | lib/axlsx/drawing/num_data.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/axlsx/drawing/num_data.rb b/lib/axlsx/drawing/num_data.rb index 7239ac5f..79108777 100644 --- a/lib/axlsx/drawing/num_data.rb +++ b/lib/axlsx/drawing/num_data.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Axlsx # This class specifies data for a particular data point. It is used for both numCache and numLit object class NumData @@ -34,14 +36,14 @@ module Axlsx end # serialize the object - def to_xml_string(str = "") - str << ('<c:' << @tag_name.to_s << '>') - str << ('<c:formatCode>' << format_code.to_s << '</c:formatCode>') - str << ('<c:ptCount val="' << @pt.size.to_s << '"/>') + def to_xml_string(str = +'') + str << (+'<c:' << @tag_name.to_s << '>') + str << (+'<c:formatCode>' << format_code.to_s << '</c:formatCode>') + str << (+'<c:ptCount val="' << @pt.size.to_s << '"/>') @pt.each_with_index do |num_val, index| num_val.to_xml_string index, str end - str << ('</c:' << @tag_name.to_s << '>') + str << (+'</c:' << @tag_name.to_s << '>') end end end |
