ruby-changes:26631
From: kou <ko1@a...>
Date: Thu, 3 Jan 2013 17:48:33 +0900 (JST)
Subject: [ruby-changes:26631] kou:r38682 (trunk): * lib/rexml/element.rb (REXML::Elements#add): Remove too much
kou 2013-01-03 17:48:22 +0900 (Thu, 03 Jan 2013) New Revision: 38682 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38682 Log: * lib/rexml/element.rb (REXML::Elements#add): Remove too much "elements" in document. Sorry... Modified files: trunk/ChangeLog trunk/lib/rexml/element.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38681) +++ ChangeLog (revision 38682) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jan 3 17:46:50 2013 Kouhei Sutou <kou@c...> + + * lib/rexml/element.rb (REXML::Elements#add): Remove too much + "elements" in document. Sorry... + Thu Jan 3 17:42:32 2013 Kouhei Sutou <kou@c...> * lib/rexml/element.rb (REXML::Elements#each): Add missing Index: lib/rexml/element.rb =================================================================== --- lib/rexml/element.rb (revision 38681) +++ lib/rexml/element.rb (revision 38682) @@ -899,7 +899,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/element.rb#L899 # doc.root.elements.each('b') {|e|p e} #-> Yields b, b elements # doc.root.elements.each('child::node()') {|e|p e} # #-> Yields <b/>, <c/>, <d/>, <b/>, <c/>, <d/> - # XPath.elements.each(doc.root, 'child::node()', &block) + # XPath.each(doc.root, 'child::node()', &block) # #-> Yields <b/>, <c/>, <d/>, sean, <b/>, <c/>, <d/> def each( xpath=nil ) XPath::each( @element, xpath ) {|e| yield e if e.kind_of? Element } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/