From: Trans Date: 2005-11-23T22:02:24+09:00 Subject: Re: string range membership > I'm not sure how to solve this. This was discussed sometime ago. The solution (mostly arrived at by Peter Vanbroekhoven) is to use a different comparision method. In Facets you'll find the #cmp method, which is part of the base methods, and which is used by the Interval class --a true Interval as opposed to what Range is. def cmp(other) return -1 if length < other.length return 1 if length > other.length self <=> other end Of course this won't be of use to tuple forms like "1.18.12", but in such cases a Tuple object is in order anyway. T.