From: Dave Thomas Date: 2001-01-02T17:55:55+09:00 Subject: [ruby-talk:8506] Re: Fetching a single character of a string Michael Granger writes: > Because String[ Integer ] returns a Fixnum, I am currently extracting > single character strings from a string by doing: > > aString.split('')[ anInteger ] > > Is there a better way to get a single character of a string as a string > instead of a Fixnum? Or a way to convert a Fixnum to its character > string equivalent? aString[n, 1] returns a string, as does aString[n].chr I personally prefer the first. Regards Dave