instance method
fourth
Ruby on Rails 4.2.9
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 47
def fourth
self[3]
end
Defined in activesupport/lib/active_support/core_ext/array/access.rb line 47
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Array