diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-09 07:49:16 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-09 07:49:16 +0000 |
commit | d556f466079d329ee678afe0c11db914894cb4b0 (patch) | |
tree | 017ab4fae052db18c5a90364a8aeb6dfb4975b87 /activesupport/lib/active_support/core_ext/range/overlaps.rb | |
parent | fba05826dc0433e177e8cf72b9ef12878fd97586 (diff) | |
download | rails-d556f466079d329ee678afe0c11db914894cb4b0.tar.gz rails-d556f466079d329ee678afe0c11db914894cb4b0.tar.bz2 rails-d556f466079d329ee678afe0c11db914894cb4b0.zip |
Style update for new Range extensions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/range/overlaps.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/range/overlaps.rb | 8 |
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 |