# File lib/hpricot/traverse.rb, line 385 def replace_child(old, new) reparent new children[children.index(old), 1] = [*new] end