From: Eric Hodel Date: 2006-07-07T10:31:22+09:00 Subject: Re: Accessing strings On Jul 6, 2006, at 5:17 PM, Dark Ambient wrote: > On 7/6/06, Eric Hodel wrote: >> On Jul 6, 2006, at 5:01 PM, Justin Collins wrote: >> > Also check the documentation. >> > http://ruby-doc.org/core/classes/String.html#M001843 >> >> Or even on your own machine: >> >> $ ri String#[] >> ... ri output > > Ahh...so those numbers are the character codes ? $ ri String#[] [...] Element Reference---If passed a single +Fixnum+, returns the code of the character at that position. If passed two +Fixnum+ objects, [...] See also Integer#chr. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com