From: Daniel Schierbeck Date: 2007-02-20T09:08:03+09:00 Subject: [Facets] Range#overlap? (I'm sending this to the list because I think it has general interest. Sorry if you disagree!) Hi T. and the rest of you, I was discussing[1] a method that tested whether one range overlaps another, and noticed that Facets has a somewhat funny implementation called #within?. I came up with this: class Range def overlap? other include? other.first or other.include? first end end It would seem to be simpler, and I really like the method name. Can you see any errors? Feel free to add it to Facets if you wish to. Cheers, Daniel 1. http://opensoul.org/2007/2/13/ranges-include-or-overlap-with-ranges