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

ruby-changes:14685

From: mame <ko1@a...>
Date: Mon, 1 Feb 2010 21:28:03 +0900 (JST)
Subject: [ruby-changes:14685] Ruby:r26538 (trunk): * lib/matrix.rb (Vector#each2): returns a self.

mame	2010-02-01 21:27:46 +0900 (Mon, 01 Feb 2010)

  New Revision: 26538

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26538

  Log:
    * lib/matrix.rb (Vector#each2): returns a self.  [ruby-dev:40241]

  Modified files:
    trunk/ChangeLog
    trunk/lib/matrix.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26537)
+++ ChangeLog	(revision 26538)
@@ -1,3 +1,7 @@
+Mon Feb  1 21:26:41 2010  Yusuke Endoh  <mame@t...>
+
+	* lib/matrix.rb (Vector#each2): returns a self.  [ruby-dev:40241]
+
 Mon Feb  1 17:08:42 2010  Yukihiro Matsumoto  <matz@r...>
 
 	* numeric.c (flo_minus): RDoc update.  a patch from red stun
Index: lib/matrix.rb
===================================================================
--- lib/matrix.rb	(revision 26537)
+++ lib/matrix.rb	(revision 26538)
@@ -1149,6 +1149,7 @@
     size.times do |i|
       yield @elements[i], v[i]
     end
+    self
   end
 
   #

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

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