From e50530ca3ab5db53ebc74314c54b62b91b932389 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 21 Nov 2008 09:06:46 +0100 Subject: Reduced the number of literal aliases to the range that has actually seen personal use. With the massive savings in overhead, I was able to fit Array#forty_two --- .../lib/active_support/core_ext/array/access.rb | 26 +++------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'activesupport/lib/active_support/core_ext/array/access.rb') diff --git a/activesupport/lib/active_support/core_ext/array/access.rb b/activesupport/lib/active_support/core_ext/array/access.rb index a3b2a54c7d..6de338bfcc 100644 --- a/activesupport/lib/active_support/core_ext/array/access.rb +++ b/activesupport/lib/active_support/core_ext/array/access.rb @@ -43,29 +43,9 @@ module ActiveSupport #:nodoc: self[4] end - # Equal to self[5]. - def sixth - self[5] - end - - # Equal to self[6]. - def seventh - self[6] - end - - # Equal to self[7]. - def eighth - self[7] - end - - # Equal to self[8]. - def ninth - self[8] - end - - # Equal to self[9]. - def tenth - self[9] + # Equal to self[41]. Also known as accessing "the reddit". + def forty_two + self[41] end end end -- cgit v1.2.3