On Fri, Dec 13, 2013 at 9:32 AM, Dave Castellano <lists / ruby-forum.com> wrote:

> I need to test for a case where 5 variables are all empty.

One possibility:

2.0.0 (main):0 > a = b = c = d = e = ''
=> ""
2.0.0 (main):0 > [ a,b,c,d,e ].all? { |x| x.empty? }
=> true
2.0.0 (main):0 > a = 'a'
=> "a"
2.0.0 (main):0 > [ a,b,c,d,e ].all? { |x| x.empty? }
=> false
2.0.0 (main):0 >

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
http://about.me/hassanschroeder
twitter: @hassan