If I have two ranges that overlap:
x = 1..10 y = 5..15
When I say:
puts x.include? y
the output is:
Rails has Range#overlaps?
def overlaps?(other) cover?(other.first) || other.cover?(first) end