size

size() -> Number

Returns the size of the array.

This is just a local optimization of the mixed-in size method from the Enumerable module, which avoids array cloning and uses the array’s native length property.