Rails has a built-in method called #overlaps?
that allows you to compare two ranges to see if they overlap each other. This method needed to be included in Ruby.
A range is a data type that represents a sequence of values. A sequence can be any data type, including numbers, characters and dates. A range is represented using the ..
and ...
operators.
.