Method: Array#second

Defined in:
lib/snmputils/arrayutils.rb

#secondObject

Convenience method to return the second element in the list

Examples:

[‘a’, ‘b’, ‘c’].second # => ‘b’

Returns:

  • (Object)

    The second object in the array



11
12
13
# File 'lib/snmputils/arrayutils.rb', line 11

def second
  return at(1)
end