From: Rick DeNatale Date: 2007-10-14T22:48:13+09:00 Subject: Re: range max On 10/12/07, ara.t.howard wrote: > > On Oct 12, 2007, at 9:40 AM, Brian Adkins wrote: > > > any object can be used in a range in ruby. it > only must respond to #succ. Actually as discussed not long ago, this is actually too strong a pre-condition for an object to be used in a range. It's true that you need succ if you want to enumerate the range, but for ranges used for, say an inclusion test, the start and end values only need to be comparable. I.e. (2.5..3.14) is a perfectly valid range for such purposes. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/