From: Hal Fulton Date: 2006-11-16T11:08:35+09:00 Subject: Re: #returning and #tap Joel VanderWerf wrote: > Joel VanderWerf wrote: > >> This variant saves typing and IMO is more idiomatically ruby: >> >> class Object >> def then >> yield(self) >> self >> end >> end > > > Oops, sorry. I didn't realize that #tap is the same as #then. > > I can't quite see why "tap" is a good name for that, though... > I suppose it's as in "tap a keg." :) In other words, an analogy for the Unix "tee" utility, which is named for a T-shaped (real-life) pipe... Or am I wrong? Hal