lib/axlsx/drawing/two_cell_anchor.rb in axlsx-1.0.13 vs lib/axlsx/drawing/two_cell_anchor.rb in axlsx-1.0.14
- old
+ new
@@ -56,18 +56,18 @@
# Serializes the two cell anchor
# @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
# @return [String]
def to_xml(xml)
#build it for now, break it down later!
- xml.send('xdr:twoCellAnchor') {
- xml.send('xdr:from') {
+ xml[:xdr].twoCellAnchor {
+ xml.from {
from.to_xml(xml)
}
- xml.send('xdr:to') {
+ xml.to {
to.to_xml(xml)
}
@object.to_xml(xml)
- xml.send('xdr:clientData')
+ xml.clientData
}
end
private