summaryrefslogtreecommitdiff
path: root/golf_prelude.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 04:59:00 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 04:59:00 (GMT)
commitc48c31a528df1c9e2bf7e7b639a55b0836b4b322 (patch)
tree718b2249c516e8805d66803d708f59ff47b70d94 /golf_prelude.rb
parent7ad2d4cc9a4ef56aadc3823f938e7f77ced55765 (diff)
* 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
Diffstat (limited to 'golf_prelude.rb')
-rw-r--r--golf_prelude.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/golf_prelude.rb b/golf_prelude.rb
index 69cbfb1..90d3582 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