Yossef Mendelssohn wrote:
> Call me crazy, but isn't this thread really about how great it would
> be to use Object#tap?

Yes, but it isn't available before Ruby 1.9:

C:\Dokumente und Einstellungen\wolfgang>irb
irb(main):001:0> "abc".tap{|x|p x}
NoMethodError: undefined method `tap' for "abc":String
        from (irb):1
irb(main):002:0> exit

C:\Dokumente und Einstellungen\wolfgang>irb19
irb(main):001:0> "abc".tap{|x|p x}
"abc"
=> "abc"

Wolfgang NĂ¡dasi-Donner
-- 
Posted via http://www.ruby-forum.com/.