From: spooq Date: 2006-11-17T20:53:22+09:00 Subject: Re: #returning and #tap On 11/17/06, Martin DeMello wrote: > On 11/17/06, spooq wrote: > > Actually, how about giving the proc a copy of the object, rather than > > the real deal? > > > > class Object > > def tap > > yield self.dup > > self > > end > > end > > Thought of that, but not everything responds to dup (nil and symbols, e.g.) Can those cases be worked around?