Module ActiveSupport::CoreExtensions::Range::Overlaps
In: vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb

Check if Ranges overlap.

Methods

overlaps?  

Public Instance methods

[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]