Class: Array
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
5 6 7 8 9 10 11 12 |
# File 'ext/faster_support/array_blank.c', line 5
static VALUE rb_ary_blank(VALUE ary)
{
if (RARRAY_LEN(ary) == 0) {
return Qtrue;
}
return Qfalse;
}
|
#present? ⇒ Boolean
14 15 16 17 |
# File 'ext/faster_support/array_blank.c', line 14
static VALUE rb_ary_present(VALUE ary)
{
return RB_NEGATE(rb_ary_blank(ary));
}
|