Hi,

On Thursday 15 February 2007 07:57, ara.t.howard / noaa.gov wrote:
> 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)

> 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

that's absolutely right, I didn't even think about that.

thank you.
-- 
pub 1024D/8D2787EF  723C 7CA3 3C19 2ACE  6E20 9CC1 9956 EB3C 8D27 87EF