method
delete
delete( object )
public
Hide source
# File lib/rexml/parent.rb, line 32 def delete( object ) found = false @children.delete_if {|c| c.equal?(object) and found = true } object.parent = nil if found found ? object : nil end