method

to_a

ruby latest stable - Class: Vector
to_a()
public

Returns the elements of the vector in an array.