From 484347a8db8edd9db0db3b87c0e0f94243cef419 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Mon, 24 Dec 2007 17:59:31 +0000 Subject: * lib/rexml/element.rb (REXML::Elements#each): yield in each should be called with one parameter. [ruby-dev:32708] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/element.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rexml') diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb index 92612036a..345e1734e 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 -- cgit