ruby-changes:14666
From: mame <ko1@a...>
Date: Sun, 31 Jan 2010 15:57:42 +0900 (JST)
Subject: [ruby-changes:14666] Ruby:r26517 (trunk): * lib/rexml/parent.rb (REXML::Parent#delete): return the deleted node
mame 2010-01-31 15:55:06 +0900 (Sun, 31 Jan 2010) New Revision: 26517 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26517 Log: * lib/rexml/parent.rb (REXML::Parent#delete): return the deleted node because the rdoc of REXML::Element#delete_element says it returns "the element that was removed." Modified files: trunk/ChangeLog trunk/lib/rexml/parent.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 26516) +++ ChangeLog (revision 26517) @@ -1,6 +1,12 @@ +Sun Jan 31 15:46:37 2010 Yusuke Endoh <mame@t...> + + * lib/rexml/parent.rb (REXML::Parent#delete): return the deleted node + because the rdoc of REXML::Element#delete_element says it returns + "the element that was removed." + Sun Jan 31 14:33:00 2010 James Edward Gray II <jeg2@r...> - * A bug fix for deleting blank Table rows from Andy Hartford. + * lib/csv.rb: A bug fix for deleting blank Table rows from Andy Hartford. Sun Jan 31 13:31:43 2010 wanabe <s.wanabe@g...> Index: lib/rexml/parent.rb =================================================================== --- lib/rexml/parent.rb (revision 26516) +++ lib/rexml/parent.rb (revision 26517) @@ -34,6 +34,7 @@ found = false @children.delete_if {|c| c.equal?(object) and found = true } object.parent = nil if found + found ? object : nil end def each(&block) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/