From: ts Date: 2001-12-01T02:33:02+09:00 Subject: [ruby-talk:27094] Re: Using Enumerable >>>>> "M" == Matt Armstrong writes: >> def each >> yield *@pointer + 1 .. @end >> end M> What is going on with this code? I can't figure it out. @pointer + 1 .. @end is a Range object * make it an Array aestivum% ruby -e '@a,@b=1,4; def a() yield *@a + 1 .. @b; end; a{|i| p i}' [2, 3, 4] aestivum% Guy Decoux