From: dblack@... Date: 2006-11-17T21:06:57+09:00 Subject: Re: #returning and #tap Hi -- On Fri, 17 Nov 2006, spooq wrote: >> I don't think dup'ing plays well with the intent, which is to do a >> kind of pass-through of the object itself. > > The original object -is- getting passed through... the point is to > prevent modification of it. That's what map! and each are for. I see what you mean. Well, as per my gsub! example, I think modifying it can be useful :-) David -- David A. Black | dblack@rubypal.com Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org