On Fri, Jul 26, 2013 at 12:56 PM, botp <botpena / gmail.com> wrote:

> On Fri, Jul 26, 2013 at 2:34 PM, Robert Klemme
> <shortcutter / googlemail.com> wrote:
> > > body.gsub(/\w+/) {|m| subs[m]}
> > => "I am he"
>
> forgot the original : )
>

What are you trying to say?


> > body.gsub(/\w+/,subs)
> => "I am he."
>

I do not see that with Ruby 1.9* (see above).  Is this Ruby 2.0 behavior?

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/