instance method
fourth
Ruby on Rails 8.0.4
Since v3.0.20Signature
fourth()
Equal to self[3].
%w( a b c d e ).fourth # => "d"
Source
# File activesupport/lib/active_support/core_ext/array/access.rb, line 69
def fourth
self[3]
end
Defined in activesupport/lib/active_support/core_ext/array/access.rb line 69
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Array