1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2007-12-28 04:59:00 +00:00
parent 7ad2d4cc9a
commit c48c31a528
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -23,9 +23,6 @@ class Object
end
class Integer
def each(&b)
times &b
end
alias each times
include Enumerable
end