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

ruby-changes:3262

From: ko1@a...
Date: 28 Dec 2007 13:59:13 +0900
Subject: [ruby-changes:3262] usa - Ruby:r14755 (trunk): * golf_prelude.rb (Integer#each): use alias simply.

usa	2007-12-28 13:59:00 +0900 (Fri, 28 Dec 2007)

  New Revision: 14755

  Modified files:
    trunk/ChangeLog
    trunk/golf_prelude.rb

  Log:
    * golf_prelude.rb (Integer#each): use alias simply.
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/golf_prelude.rb?r1=14755&r2=14754
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14755&r2=14754

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14754)
+++ ChangeLog	(revision 14755)
@@ -1,3 +1,7 @@
+Fri Dec 28 13:57:49 2007  NAKAMURA Usaku  <usa@r...>
+
+	* golf_prelude.rb (Integer#each): use alias simply.
+
 Fri Dec 28 13:45:21 2007  Akinori MUSHA  <knu@i...>
 
 	* golf_prelude.rb (Object.const_missing): No need to delegate to
Index: golf_prelude.rb
===================================================================
--- golf_prelude.rb	(revision 14754)
+++ golf_prelude.rb	(revision 14755)
@@ -23,9 +23,6 @@
 end
 
 class Integer
-  def each(&b)
-    times &b
-  end
-
+  alias each times
   include Enumerable
 end

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

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