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