diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 17:59:31 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 17:59:31 +0000 |
| commit | 484347a8db8edd9db0db3b87c0e0f94243cef419 (patch) | |
| tree | 03079c57868fe3c41379fe9b41da8ddc5d3ecf24 | |
| parent | 819fa44f8d731b61f77e42348f633139175802bd (diff) | |
| download | ruby-484347a8db8edd9db0db3b87c0e0f94243cef419.tar.gz ruby-484347a8db8edd9db0db3b87c0e0f94243cef419.tar.xz ruby-484347a8db8edd9db0db3b87c0e0f94243cef419.zip | |
* 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
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | lib/rexml/element.rb | 2 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Tue Dec 25 02:55:26 2007 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * 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 <ko1@atdot.net> * compile.c (iseq_compile_each): add a "pop" insn after break @@ -469,7 +474,7 @@ Sun Dec 23 01:56:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org> Sun Dec 23 01:18:06 2007 David Flanagan <david@davidflanagan.com> * 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 <shugo@ruby-lang.org> 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 |
