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/.