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): Integer is now enumerable on goruby.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2007-12-27 16:47:58 +00:00
parent 7ee205d1d1
commit b8f8c75579
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Fri Dec 28 01:47:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* golf_prelude.rb (Integer): Integer is now enumerable on goruby.
Fri Dec 28 01:27:47 2007 Tanaka Akira <akr@fsij.org>
* lib/rdoc/rdoc.rb (parse_files): don't depend on the default external

View file

@ -9,3 +9,11 @@ class Object
puts "#{a}ello, #{b}orld#{c}"
end
end
class Integer
def each(&b)
times &b
end
include Enumerable
end