Permalink
Browse files

Merge pull request #12713 from utenmiki/document

Add Rdoc document for Array#forty_two [ci skip]
  • Loading branch information...
2 parents aaedb1a + 3f79d84 commit 1adcebdb582f1cd091c5472d864e7c97b99333d0 @senny senny committed Nov 1, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 activesupport/lib/active_support/core_ext/array/access.rb
@@ -48,6 +48,8 @@ def fifth
end
# Equal to <tt>self[41]</tt>. Also known as accessing "the reddit".
+ #
+ # (1..42).to_a.forty_two # => 42
def forty_two
self[41]
end

0 comments on commit 1adcebd

Please sign in to comment.