From: Pit Capitain Date: 2008-01-31T21:49:54+09:00 Subject: Re: neat idea from arc 2008/1/30, Martin DeMello : > I was thinking of this as a replacement for (and generalisation of) > grep, since it would extend to other methods like #reject and > #partition too Martin, you can define class Object def to_proc lambda {|e| self === e } end end and then [3,1,4,1,5].all?(&(1..5))) # => true Regards, Pit