Upgraded Rails and RSpec
[monkeycharger.git] / vendor / rails / activesupport / lib / active_support / core_ext / range / overlaps.rb
blob80ed1bba9d7317fc43e8856616d7acffc25c2162
1 module ActiveSupport #:nodoc:
2   module CoreExtensions #:nodoc:
3     module Range #:nodoc:
4       # Check if Ranges overlap.
5       module Overlaps
6         def overlaps?(other)
7           include?(other.first) || other.include?(first)
8         end
9       end
10     end
11   end
12 end