Sha256: 4deccaa96e3ec743bacc7a82c49b1fcf99c64c0e5d6f4f3052be3a83c05bf224
Contents?: true
Size: 407 Bytes
Versions: 16
Compression:
Stored size: 407 Bytes
Contents
require 'xml' def test( doc2 ) doc = XML::Document.new('1.0') doc.root = XML::Node.new("ccc") doc.root['aaa'] = 'aaa' doc.root.child_add(doc2.root.copy(true)) # BUG! doc.root << doc2.root.copy(true) return doc end def test2 doc2 = XML::Document.new('1.0') doc2.root = XML::Node.new("aaa") test( doc2 ) end 1000.times { |i| print "\r#{i}"; $stdout.flush test2 }
Version data entries
16 entries across 16 versions & 1 rubygems