* lib/rexml/element.rb (REXML::Elements#add): Remove too much

"elements" in document. Sorry...


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2013-01-03 08:48:22 +00:00
parent ece67a0a12
commit 1fe680e812
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Jan 3 17:46:50 2013 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/element.rb (REXML::Elements#add): Remove too much
"elements" in document. Sorry...
Thu Jan 3 17:42:32 2013 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/element.rb (REXML::Elements#each): Add missing

View File

@ -899,7 +899,7 @@ module REXML
# 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 }