зеркало из https://github.com/github/ruby.git
* 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:
Родитель
7ad2d4cc9a
Коммит
c48c31a528
|
@ -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
|
||||
|
|
|
@ -23,9 +23,6 @@ class Object
|
|||
end
|
||||
|
||||
class Integer
|
||||
def each(&b)
|
||||
times &b
|
||||
end
|
||||
|
||||
alias each times
|
||||
include Enumerable
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче