From: Thomas Wieczorek Date: 2008-03-30T04:18:02+09:00 Subject: Re: (1..5) === 3 > true 3 === (1..5) > false On Sat, Mar 29, 2008 at 8:13 PM, Francis Burton wrote: > > Is there a construct like this in Ruby? > > if x in (1..5) > You can use Enumerable#include?. if (1..5).include?(x)