title: Check if two ranges overlap in ruby
body: <p>I know that I can do:</p>
  
  <pre><code>(1..30).cover?(2)
  =&gt; true
  </code></pre>
  
  <p>But when I try to do the same with another range it always returns false:</p>
  
  <pre><code>(1..30).cover?(2..3)
  =&gt; false
  </code></pre>
  
  <p>So my question is - is there any elegant way to compare two ranges in ruby? In my case I want to check if two DateTime-ranges overlap. Thanks in advance.</p>