lib/metanorma/collection.rb in metanorma-1.4.6 vs lib/metanorma/collection.rb in metanorma-1.4.7
- old
+ new
@@ -54,11 +54,11 @@
end
# @return [String] XML
def to_xml
b = Nokogiri::XML::Builder.new do |xml|
- xml.send("metanorma-collection",
+ xml.send(:"metanorma-collection",
"xmlns" => "http://metanorma.org") do |mc|
collection_body(mc)
end
end
b.to_xml
@@ -181,10 +181,10 @@
end
end
def doccontainer1(builder, doc, idx)
id = format("doc%<index>09d", index: idx)
- builder.send("doc-container", id: id) do |b|
+ builder.send(:"doc-container", id: id) do |b|
if doc.attachment
doc.bibitem and b << doc.bibitem.root.to_xml
b.attachment Metanorma::Utils::datauri(doc.file)
else doc.to_xml b
end