summaryrefslogtreecommitdiff
path: root/lib/rexml/element.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 17:59:31 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 17:59:31 +0000
commit8f5b0a4cd4decba7a56d1acb9601db47d2935ec0 (patch)
tree03079c57868fe3c41379fe9b41da8ddc5d3ecf24 /lib/rexml/element.rb
parent105e00bdd797fa6699919e3d34edf57428be3c6e (diff)
* lib/rexml/element.rb (REXML::Elements#each): yield in each
should be called with one parameter. [ruby-dev:32708] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/element.rb')
-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 92612036a1..345e1734e5 100644
--- a/lib/rexml/element.rb
+++ b/lib/rexml/element.rb
@@ -1013,7 +1013,7 @@ module REXML
# doc.root.attributes.each {|name, value| p name+" => "+value }
def each
each_attribute do |attr|
- yield attr.expanded_name, attr.value
+ yield [attr.expanded_name, attr.value]
end
end