If I have two ranges that overlap:
x = 1..10 y = 5..15
When I say:
puts x.include? y
the output is:
If a range includes either the beginning or the end of a second range, then they overlap.
(x === y.first) or (x === y.last)
is the same as this:
x.include?(y.first) or x.include?(y.last)