Method: Array#empty?
- Defined in:
- array.c
#empty? ⇒ Boolean
Returns true if the count of elements in self is zero, false otherwise.
Related: see Methods for Querying.
2764 2765 2766 2767 2768 |
# File 'array.c', line 2764 static VALUE rb_ary_empty_p(VALUE ary) { return RBOOL(RARRAY_LEN(ary) == 0); } |