lib/axlsx/drawing/series.rb in axlsx-1.0.13 vs lib/axlsx/drawing/series.rb in axlsx-1.0.14
- old
+ new
@@ -56,12 +56,12 @@
# Serializes the series
# @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
# @return [String]
def to_xml(xml)
- xml.send('c:ser') {
- xml.send('c:idx', :val=>index)
- xml.send('c:order', :val=>order || index)
+ xml.ser {
+ xml.idx :val=>index
+ xml.order :val=>order || index
title.to_xml(xml) unless title.nil?
yield xml if block_given?
}
end