From: "Michael W. Ryder" <_mwryder@...> Date: 2008-11-20T13:21:15+09:00 Subject: Re: Is there another method like .next? Todd Benson wrote: > On Wed, Nov 19, 2008 at 7:41 PM, Michael W. Ryder > <_mwryder@worldnet.att.net> wrote: >> I was looking for a way to iterate through the ascii values > > For classic printables... > > (32...128).map {|int| int.chr} > I think this should be (32...127).map as 128 is the not printable. I had forgotten about .chr. This allows me to do b = a[0].next.chr and get the desired result. This is a little more than I expected but a lot simpler than my first attempt. Thanks for the pointer. > You then have an array which you can #join if you want. > > Todd >