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