End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Symbol#empty?
sym.empty? → true or false
string.c
View on GitHub ↗
static VALUE
sym_empty(VALUE sym)
{
return rb_str_empty(rb_sym2str(sym));
}
Returns whether sym is :“” or not.