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:
parent
7ad2d4cc9a
commit
c48c31a528
2 changed files with 5 additions and 4 deletions
|
@ -23,9 +23,6 @@ class Object
|
|||
end
|
||||
|
||||
class Integer
|
||||
def each(&b)
|
||||
times &b
|
||||
end
|
||||
|
||||
alias each times
|
||||
include Enumerable
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue