= private = protected
length()
Returns the number of elements in self. May be zero.
[ 1, 2, 3, 4, 5 ].length #=> 5
/* * call-seq: * array.length -> int * * Returns the number of elements in <i>self</i>. May be zero. * * [ 1, 2, 3, 4, 5 ].length #=> 5 */ static VALUE rb_ary_length(ary) VALUE ary; { return LONG2NUM(RARRAY(ary)->len); }