[前][次][番号順一覧][スレッド一覧]

ruby-changes:3132

From: ko1@a...
Date: 25 Dec 2007 02:59:42 +0900
Subject: [ruby-changes:3132] gotoyuzo - Ruby:r14624 (trunk): * lib/rexml/element.rb (REXML::Elements#each): yield in each

gotoyuzo	2007-12-25 02:59:31 +0900 (Tue, 25 Dec 2007)

  New Revision: 14624

  Modified files:
    trunk/ChangeLog
    trunk/lib/rexml/element.rb

  Log:
    * lib/rexml/element.rb (REXML::Elements#each): yield in each
      should be called with one parameter. [ruby-dev:32708]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14624&r2=14623
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rexml/element.rb?r1=14624&r2=14623

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14623)
+++ ChangeLog	(revision 14624)
@@ -1,3 +1,8 @@
+Tue Dec 25 02:55:26 2007  GOTOU Yuuzou  <gotoyuzo@n...>
+
+	* 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@a...>
 
 	* compile.c (iseq_compile_each): add a "pop" insn after break
@@ -469,7 +474,7 @@
 Sun Dec 23 01:18:06 2007  David Flanagan  <david@d...>
 
 	* 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@r...>
 
Index: lib/rexml/element.rb
===================================================================
--- lib/rexml/element.rb	(revision 14623)
+++ lib/rexml/element.rb	(revision 14624)
@@ -1013,7 +1013,7 @@
     #  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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]