If I have two ranges that overlap:
x = 1..10 y = 5..15
When I say:
puts x.include? y
the output is:
The efficient way is to compare the limits
(x.first <= y.last) and (y.first <= x.last)