From: Hassan Schroeder Date: 2013-02-08T00:25:53+09:00 Subject: Re: Issues from an extreme beginner On Wed, Feb 6, 2013 at 10:43 PM, Bruce Palmer wrote: > I don't know what I was thinking before, brain fart perhaps, but I was > unnecessarily converting back and forth between string and integer. > names = name1.length + name2.length + name3.length Or just: (name1 + name2 + name3).length Or: [name1, name2, name3].join.length > puts 'There are ' + names.to_s + ' character\'s in your name!' Uh, there's no apostrophe in the plural of "character". FWIW. (Sorry, personal pet peeve.) -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan