lib/axlsx/drawing/val_axis.rb in axlsx-1.0.18 vs lib/axlsx/drawing/val_axis.rb in axlsx-1.1.0
- old
+ new
@@ -20,16 +20,17 @@
super(axId, crossAx, options)
end
# @see crossBetween
def crossBetween=(v) RestrictionValidator.validate "ValAxis.crossBetween", [:between, :midCat], v; @crossBetween = v; end
- # Serializes the value axis
- # @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
+ # Serializes the object
+ # @param [String] str
# @return [String]
- def to_xml(xml)
- xml.valAx {
- super(xml)
- xml.crossBetween :val=>@crossBetween
- }
+ def to_xml_string(str = '')
+ str << '<c:valAx>'
+ super(str)
+ str << '<c:crossBetween val="' << @crossBetween.to_s << '"/>'
+ str << '</c:valAx>'
end
+
end
end