Google

def remove unless @parent.nil? @parent.delete self end self end