From: Albert Schlef Date: 2009-04-13T15:57:19+09:00 Subject: Re: more efficient date range comparison Dave Woodworth wrote: > conflicts += 1 if my_rec.include?(start) || > my_rec.include?(finish) Off topic: I think you have a bug here. If my_rec is, say, 20..40, and other_rec is, say, 10..50, your test won't detect this conflict (because neither 10 nor 50 are included in the my_rec range). -- Posted via http://www.ruby-forum.com/.