diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2012-05-14 21:49:42 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2012-05-14 21:49:42 +0300 |
commit | 151aa9abae131f1a03513f756aeaef2fc403f9bb (patch) | |
tree | ade4309d7ccb5c1037177e9a962862847e246f3c /guides/source | |
parent | 17059a4868532f0046f1ec0ecc643a2211d6db45 (diff) | |
download | rails-151aa9abae131f1a03513f756aeaef2fc403f9bb.tar.gz rails-151aa9abae131f1a03513f756aeaef2fc403f9bb.tar.bz2 rails-151aa9abae131f1a03513f756aeaef2fc403f9bb.zip |
remove docs on Range#step
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_support_core_extensions.textile | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/guides/source/active_support_core_extensions.textile b/guides/source/active_support_core_extensions.textile index 8045316e98..bf30ed64c8 100644 --- a/guides/source/active_support_core_extensions.textile +++ b/guides/source/active_support_core_extensions.textile @@ -2767,18 +2767,6 @@ As the example depicts, the +:db+ format generates a +BETWEEN+ SQL clause. That NOTE: Defined in +active_support/core_ext/range/conversions.rb+. -h4. +step+ - -Active Support extends the method +Range#step+ so that it can be invoked without a block: - -<ruby> -(1..10).step(2) # => [1, 3, 5, 7, 9] -</ruby> - -As the example shows, in that case the method returns an array with the corresponding elements. - -NOTE: Defined in +active_support/core_ext/range/blockless_step.rb+. - h4. +include?+ The methods +Range#include?+ and +Range#===+ say whether some value falls between the ends of a given instance: |