End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Symbol#capitalize
sym.capitalize → symbol
sym.capitalize([options]) → symbol
string.c
View on GitHub ↗
static VALUE
sym_capitalize(int argc, VALUE *argv, VALUE sym)
{
return rb_str_intern(rb_str_capitalize(argc, argv, rb_sym2str(sym)));
}
Same as sym.to_s.capitalize.intern.