End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Symbol#slice
sym.slice(idx) → char
sym.slice(b, n) → string
string.c
View on GitHub ↗
static VALUE
sym_aref(int argc, VALUE *argv, VALUE sym)
{
return rb_str_aref_m(argc, argv, rb_sym2str(sym));
}
Alias of #[]
Returns sym.to_s[].