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