From: Eero Saynatkari Date: 2009-05-25T22:46:08+09:00 Subject: [ruby-core:23548] Re: a feature for ruby: Kernel#in? Excerpts from rogerdpack's message of Mon May 25 07:41:36 +0300 2009: > Following a discussion on ruby-talk of a few ideas for ruby[1], > thought I'd suggest them (one at a time) to core. > Here's the first. > > Add an Object#in? method to complement Enumerable#include? I am pretty opposed to adding #in?; however, it is currently possible to use Comparable#between? for a similar purpose. I think it has a more appropriate granularity, although it may not exactly cover all the cases you were considering? -- Magic is insufficiently advanced technology.