James Gray
1/11/2007 11:48:00 PM
On Jan 11, 2007, at 3:37 PM, David and Sharon Phillips wrote:
> I'm new to ruby and this is my first quiz entry, so
> feel free to offer any feedback/suggestions etc.
I like it. Looks nice and clean. My only suggestion would be to
prefer string interpolation to addition. For example:
"Short words: " + @short_words.length.to_s
Is simpler as:
"Short words: #{@short_words.length}"
Saves some to_s() calls at the very least.
James Edward Gray II