From: Trans Date: 2006-11-17T22:00:09+09:00 Subject: Re: #returning and #tap 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 "Do as if frozen". Perhaps #freeze could take a block? T.