From: "David A. Black" Date: 2007-11-17T06:55:43+09:00 Subject: Re: Yielding an object and caring about the result: the cousin of Object#tap Hi -- On Sat, 17 Nov 2007, ara.t.howard wrote: > > On Nov 16, 2007, at 3:12 AM, Robert Klemme wrote: > >> response = http.response >> >> if response >> ... >> end > > this just jumped into mind > > unless [ response = http.response ].empty? > p response.body.size > end > > i've never used that, but it's kind of interesting... When would it ever be empty? David -- Upcoming training by David A. Black/Ruby Power and Light, LLC: * Advancing With Rails, Berlin, Germany, November 19-22 * Intro to Rails, London, UK, December 3-6 (by Skills Matter) See http://www.rubypal.com for details!