From: William Djaja Tjokroaminata Date: 2002-10-20T05:30:41+09:00 Subject: Re: string[lastchar] -> string? Well, you don't really need the 'chr' method, which is a method of class Integer. As long as you know about the negative indices, you can also write str[-1, 1] This is related to item 5 in the newcomers' list (http://www.glue.umd.edu/~billtj/ruby.html#Getting%20characters%20from%20a%20String) Regards, Bill =========================================================================== Szabolcs Szasz wrote: > Ahhh, yes! Thanks! > I was reading the Pragmatic... book and the String class > doesn't have that 'chr' method there. (And a special thanks > for the negative indexes, which I missed completely...)