We had fun with this on irc yesterday. I guess it's safe for jdjd to check
out my gists now. ;)

https://gist.github.com/phluid61/7999234

Sent from my phone, so excuse the typos.
On Dec 18, 2013 9:15 PM, "Joel Pearson" <lists / ruby-forum.com> wrote:

> Ok, I think I've found an alternative method:
>
> def reverse
>   yield.gsub(/\b(\w+)\b/) { $1.reverse }
> end
>
> reverse { 'hello world' }
> => "olleh dlrow"
>
> --
> Posted via http://www.ruby-forum.com/.
>