Check if Ranges overlap.
[Source]
# File vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb, line 6 6: def overlaps?(other) 7: include?(other.first) || other.include?(first) 8: end
[Validate]