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!