On Apr 23, 2007, at 12:20 AM, Bob Lisbonne wrote:

> I'd welcome any suggestion for making it more ruby-like.

Two simple things I noticed:

dotsanddashes.size == 0 # => dotsanddashes.empty?

try.gsub(/\./,'\.') # => Regexp.escape(try)

Just some thoughts.

Welcome to Ruby Quiz.

James Edward Gray II