diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-10-08 06:05:44 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-10-08 06:05:44 +0000 |
commit | 99c64829ce71ecf07b576960ea8ff01dfee61be7 (patch) | |
tree | d9da774856c45c18c68f2cc8f6b92b331fcebf47 /activesupport/lib/active_support/core_ext/range.rb | |
parent | c2602354d10e3ceeb10a7f38dc4ff2f838badba2 (diff) | |
download | rails-99c64829ce71ecf07b576960ea8ff01dfee61be7.tar.gz rails-99c64829ce71ecf07b576960ea8ff01dfee61be7.tar.bz2 rails-99c64829ce71ecf07b576960ea8ff01dfee61be7.zip |
* Add Range#overlaps?(range), Range#include?(range), and Range#step without a block. [brandon] Closes #9746
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7800 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/range.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/range.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/range.rb b/activesupport/lib/active_support/core_ext/range.rb index ee7868a2f8..c3ef624617 100644 --- a/activesupport/lib/active_support/core_ext/range.rb +++ b/activesupport/lib/active_support/core_ext/range.rb @@ -1,5 +1,11 @@ require 'active_support/core_ext/range/conversions' +require File.dirname(__FILE__) + '/range/overlaps' +require File.dirname(__FILE__) + '/range/include_range' +require File.dirname(__FILE__) + '/range/blockless_step' class Range #:nodoc: include ActiveSupport::CoreExtensions::Range::Conversions + include ActiveSupport::CoreExtensions::Range::Overlaps + include ActiveSupport::CoreExtensions::Range::IncludeRange + include ActiveSupport::CoreExtensions::Range::BlocklessStep end |