From: Dan Doel Date: 2003-11-26T07:23:05+09:00 Subject: Re: Range does not take an Range object. Oops, that's slightly broken. Here's a fix. class Range alias_method :old_include?, :include? def include?(obj) if obj.is_a? Range old_include? obj.first and old_include? obj.exclude_end? ? obj.last-1 : obj.last else old_include? obj end end def intersect?(aRange) aRange.each do |i| return true if include? i end false end end