From 8f5b0a4cd4decba7a56d1acb9601db47d2935ec0 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Mon, 24 Dec 2007 17:59:31 +0000 Subject: [PATCH] * 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 --- ChangeLog | 7 ++++++- lib/rexml/element.rb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13e8c2e485..67065cf7c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 25 02:55:26 2007 GOTOU Yuuzou + + * lib/rexml/element.rb (REXML::Elements#each): yield in each + should be called with one parameter. [ruby-dev:32708] + Tue Dec 25 02:15:39 2007 Koichi Sasada * compile.c (iseq_compile_each): add a "pop" insn after break @@ -469,7 +474,7 @@ Sun Dec 23 01:56:18 2007 Yukihiro Matsumoto Sun Dec 23 01:18:06 2007 David Flanagan * io.c, io.h: temporary patch to partially implement - transcode-on-read and transcode-on-write + transcode-on-read and transcode-on-write Sun Dec 23 00:48:05 2007 Shugo Maeda 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