summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 04:59:00 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 04:59:00 +0000
commit00e573e1fd378a4323c271f83cfe9f9d7aa1b135 (patch)
tree718b2249c516e8805d66803d708f59ff47b70d94
parentc3d34fe9aa94c555b12dd24e417c3761f071e699 (diff)
downloadruby-00e573e1fd378a4323c271f83cfe9f9d7aa1b135.tar.gz
ruby-00e573e1fd378a4323c271f83cfe9f9d7aa1b135.tar.xz
ruby-00e573e1fd378a4323c271f83cfe9f9d7aa1b135.zip
* golf_prelude.rb (Integer#each): use alias simply.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--golf_prelude.rb5
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2399e51bd..06ae0b589 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Dec 28 13:57:49 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * golf_prelude.rb (Integer#each): use alias simply.
+
Fri Dec 28 13:45:21 2007 Akinori MUSHA <knu@iDaemons.org>
* golf_prelude.rb (Object.const_missing): No need to delegate to
diff --git a/golf_prelude.rb b/golf_prelude.rb
index 69cbfb129..90d3582f0 100644
--- a/golf_prelude.rb
+++ b/golf_prelude.rb
@@ -23,9 +23,6 @@ class Object
end
class Integer
- def each(&b)
- times &b
- end
-
+ alias each times
include Enumerable
end