From: Jack Dempsey Date: 2002-01-26T03:07:32+09:00 Subject: RE: upcase/downcase first character of a word true true...well, you could shorten what you have by doing [0,1].downcase or upcase,bypassing the conversion of the letter to a num and back... > -----Original Message----- > From: Tobias Reif [mailto:tobiasreif@pinkjuice.com] > Sent: Friday, January 25, 2002 12:59 PM > To: ruby-talk ML > Subject: Re: upcase/downcase first character of a word > > > Jack Dempsey wrote: > > > to upcase i'd use capitalize...not sure about downcasing JUST the first > > letter... > > > Well; I need just the first character up-/downcased. #capitalize > downcases all subsequent characters: > > "camelBack".capitalize > # -> "Camelback" > > Tobi > > > > -- > http://www.pinkjuice.com/ > >