From: Tim Pease Date: 2007-02-15T03:26:17+09:00 Subject: Re: Drying a ternary condition On 2/14/07, Marcello Barnaba wrote: > How would you write the following statement: > > klass.send((ARGV[0] || :up).to_sym == :up ? :up : :down) > ARGV[0] ? klass.send(:up) : klass.send(:down) Blessings, TwP