Dave Aronson wrote in post #1120093:
> Interesting!  I haven't had cause to use the block-form of gsub
> before, and here you are, using it twice.  I'll have to remember that
> trick!

I already showed you that! :p

Joel Pearson wrote in post #1119780:
> def titleize( x )
>   x.gsub( /\w+/ ) { |w| w.length > 3 ? w.capitalize : w.downcase
> }.capitalize
> end

-- 
Posted via http://www.ruby-forum.com/.