method

elements

ruby latest stable - Class: Vector
elements(array, copy = true)
public

Creates a vector from an Array. The optional second argument specifies whether the array itself or a copy is used internally.