Permalink
Browse files

Add Rdoc document for Array#forty_two

  • Loading branch information...
1 parent cc2a9df commit 3f79d8423078f0671c8aa505ae199608d451663d utenmiki committed Oct 31, 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 3f79d84

Please sign in to comment.