From: John Joyce Date: 2007-06-15T23:24:29+09:00 Subject: Re: lose the first character On Jun 14, 2007, at 9:48 PM, Joel VanderWerf wrote: > Daniel DeLorme wrote: >> Colin Summers wrote: >>> r = r.reverse.chop.reverse # remove the first character >>> There are a million ways to do this in Ruby. Here's a way that could be readable... r = 'some string' range_end = r.length - 1 r.slice!(1..range_end) We could def a method that takes a string and does all of this. One version could return a new string, the other could trim it in place. def nibble(string) range_end = string.length - 1 string.slice(1..range_end) end Now we can do r = nibble(r) You could also just extend String.