diff --git a/ChangeLog b/ChangeLog index 2399e51bda..06ae0b5890 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 28 13:57:49 2007 NAKAMURA Usaku + + * golf_prelude.rb (Integer#each): use alias simply. + Fri Dec 28 13:45:21 2007 Akinori MUSHA * golf_prelude.rb (Object.const_missing): No need to delegate to diff --git a/golf_prelude.rb b/golf_prelude.rb index 69cbfb1297..90d3582f05 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