summaryrefslogtreecommitdiff
path: root/lib/rexml
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-03 08:48:22 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-03 08:48:22 +0000
commit1fe680e812e44a760b2e9bc58402c08774d5d1a0 (patch)
treef27c5fcff815cf2969c6c71418d4b7a4566702c5 /lib/rexml
parentece67a0a12aaffc083963b606a5bd09feb5cf68a (diff)
* 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
Diffstat (limited to 'lib/rexml')
-rw-r--r--lib/rexml/element.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb
index f982599..616771f 100644
--- a/lib/rexml/element.rb
+++ b/lib/rexml/element.rb
@@ -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 }