From: Caleb Clausen Date: 2010-04-25T02:41:33+09:00 Subject: Re: Best way to write this method? On 4/23/10, steve ross wrote: > def elements_overlap?(a, b) > !((b.first > a.last) || (a.first > b.last)) > end This is on the right track to the right implementation, but it won't handle this case correctly: elements_overlap?(0...2,2..3) #=>should be false