From: Dave Woodworth Date: 2009-04-16T20:51:23+09:00 Subject: Re: more efficient date range comparison Albert Schlef wrote: > 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). good catch! thanks -- Posted via http://www.ruby-forum.com/.