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