From: Intransition Date: 2011-09-26T04:51:06+09:00 Subject: Re: Conditional statements with multiple arguments On Sep 24, 7:25 pm, Chris Hulan wrote: > On Sat, Sep 24, 2011 at 7:10 PM, Intransition wrote: > > >  if x.either == [1, 2] > You could do it with inlcude: > [1,2].include? x It's more limited though. Consider:  if a.either.include? [1, 2] if a.either.is_a? [String, Symbol] etc.