method

nitems

Importance_1
v1_8_6_287 - Show latest stable - 0 notes - Class: Array
nitems() public

Returns the number of non-nil elements in self. May be zero.

   [ 1, nil, 3, nil, 5 ].nitems   #=> 3
Show source
Register or log in to add new notes.