From: Chris Hulan Date: 2011-09-25T08:25:29+09:00 Subject: Re: Conditional statements with multiple arguments On Sat, Sep 24, 2011 at 7:10 PM, Intransition wrote: > I was thinking about this just yesterday. Sure would be nice if their > were a way to make dry'er considtions > >  if x == 1 or x == 2 > > vs. > >  if x == 1 or 2 > > Is there a way to do it? > >  if x.either == [1, 2] > > > You could do it with inlcude: [1,2].include? x cheers