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