Ah yes, this looks like a neater way to do it:
yield.gsub(/\S+/){|s|s.reverse}

Nice code :)

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