aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/range/overlaps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/core_ext/range/overlaps.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/range/overlaps.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/core_ext/range/overlaps.rb b/activesupport/lib/active_support/core_ext/range/overlaps.rb
index 672e97fca4..80ed1bba9d 100644
--- a/activesupport/lib/active_support/core_ext/range/overlaps.rb
+++ b/activesupport/lib/active_support/core_ext/range/overlaps.rb
@@ -1,14 +1,12 @@
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:
module Range #:nodoc:
- # Check if Ranges overlap
+ # Check if Ranges overlap.
module Overlaps
-
def overlaps?(other)
include?(other.first) || other.include?(first)
- end
-
+ end
end
end
end
-end \ No newline at end of file
+end