From e7b3ad535b7deefecd7d14ec3631757073ea3f39 Mon Sep 17 00:00:00 2001
From: Xavier Noria <fxn@hashref.com>
Date: Sun, 25 Oct 2009 20:07:01 +0100
Subject: AS guide: documents the extension to Range#step

---
 railties/guides/source/active_support_core_extensions.textile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'railties/guides/source/active_support_core_extensions.textile')

diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index c3eabe7376..e137eb436f 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -1625,7 +1625,15 @@ This method is also used in the routes code for building regexps.
 
 h3. Extensions to +Range+
 
-...
+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 and array with the corresponding elements.
 
 h3. Extensions to +Proc+
 
-- 
cgit v1.2.3

