Hi -- On Wed, 14 Nov 2007, Kamil wrote: > I wish there would be this simple method in the core: > > class Object > def in?(an_array) > an_array.include?(self) > end > end > > Having that it's nice to write: > > a = %w(hello world out there) > puts 'world'.in?(a) > > And it works with Interval instance too. This is a bit of a perma-thread on this mailing list. I guess it's hard to Google for :-) But it's been talked about a lot. David -- Upcoming training by David A. Black/Ruby Power and Light, LLC: * Advancing With Rails, Berlin, Germany, November 19-22 * Intro to Rails, London, UK, December 3-6 (by Skills Matter) See http://www.rubypal.com for details!