From d556f466079d329ee678afe0c11db914894cb4b0 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 9 Oct 2007 07:49:16 +0000 Subject: Style update for new Range extensions git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/range/overlaps.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'activesupport/lib/active_support/core_ext/range/overlaps.rb') 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 -- cgit v1.2.3