On Apr 13, 2011, at 7:28 AM, Vahagn Hayrapetyan wrote: >>> You are doing lots of unnecessary work there. Since MatchData#captures >>> returns an array and Array already defines each, you don't need to >>> create >>> any enumerator at all to iterate through the #captures array: >>> >> >> As the op said: >> >>>>> This is what I've done just to >>>>> experiment: > > Exactly - that was just to get proof of Enumerator working. In my > method, I just use :each of an Array object: OK. I guess I didn't read closely enough. Gary Wright