From 3f79d8423078f0671c8aa505ae199608d451663d Mon Sep 17 00:00:00 2001 From: utenmiki Date: Thu, 31 Oct 2013 23:20:15 +0900 Subject: Add Rdoc document for Array#forty_two --- activesupport/lib/active_support/core_ext/array/access.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/core_ext/array/access.rb b/activesupport/lib/active_support/core_ext/array/access.rb index 4f1e432b61..67f58bc0fe 100644 --- a/activesupport/lib/active_support/core_ext/array/access.rb +++ b/activesupport/lib/active_support/core_ext/array/access.rb @@ -48,6 +48,8 @@ class Array end # Equal to self[41]. Also known as accessing "the reddit". + # + # (1..42).to_a.forty_two # => 42 def forty_two self[41] end -- cgit v1.2.3