Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

AS guide: fixes an example

  • Loading branch information...
commit e9a23e4f2082a84f93e6dc1134cb6f9fd205ea35 1 parent 64eee76
@fxn fxn authored
View
2  railties/guides/source/active_support_core_extensions.textile
@@ -888,7 +888,7 @@ Similarly, +from+ returns the tail from the element at the passed index on:
<ruby>
%w(a b c d).from(2) # => %w(c d)
%w(a b c d).from(10) # => nil
-[].from(0) # => nil
+[].from(0) # => []
</ruby>
The methods +second+, +third+, +fourth+, and +fifth+ return the corresponding element (+first+ is builtin). Thanks to social wisdom and positive constructiveness all around, +forty_two+ is also available.
Please sign in to comment.
Something went wrong with that request. Please try again.