Method: Array#forty_two

Defined in:
activesupport/lib/active_support/core_ext/array/access.rb

#forty_twoObject

Equal to self[41]. Also known as accessing “the reddit”.

(1..42).to_a.forty_two # => 42


53
54
55
# File 'activesupport/lib/active_support/core_ext/array/access.rb', line 53

def forty_two
  self[41]
end

Comments