If I have two ranges that overlap:
x = 1..10 y = 5..15
When I say:
puts x.include? y
the output is:
Be careful using this with large ranges but this is an elegant way to do it:
(x.to_a & y.to_a).empty?