1 module ActiveSupport
#:nodoc:
2 module CoreExtensions
#:nodoc:
4 # Check if Ranges overlap.
6 # Compare two ranges and see if they overlap eachother
7 # (1..5).overlaps?(4..6) # => true
8 # (1..5).overlaps?(7..9) # => false
10 include?(other
.first
) || other
.include?(first
)