Method: Symbol#empty?

Defined in:
string.c

#empty?Boolean

Returns true if self is :'', false otherwise.

Returns:

  • (Boolean)


12334
12335
12336
12337
12338
# File 'string.c', line 12334

static VALUE
sym_empty(VALUE sym)
{
    return rb_str_empty(rb_sym2str(sym));
}