On Monday, May 3, 2004, 6:09:03 AM, Stephan wrote:

> class Foo # :yield: i
            ^^^^^^^^^^^
>    def each
>      3.times{ |i| yield i }
>    end
> end

will get you what you want.

Cheers,
Gavin