method

size

ruby latest stable - Class: Vector
size()
public

Returns the number of elements in the vector.