From: ara.t.howard@... Date: 2007-02-15T15:57:39+09:00 Subject: Re: Drying a ternary condition On Thu, 15 Feb 2007, Marcello Barnaba wrote: > How would you write the following statement: > > klass.send((ARGV[0] || :up).to_sym == :up ? :up : :down) > > ? > > Thanks :) i would just do this klass.send( ARGV[0] || 'up' ) and live with the exception, which will no less clear than program.rb UP sending the msg ':down' silently regards. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama