Google

def replace_with( child ) @parent.replace_child( self, child ) self end