End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Symbol#match
sym.match(pattern) → matchdata or nil
sym.match(pattern, pos) → matchdata or nil
string.c
View on GitHub ↗
static VALUE
sym_match_m(int argc, VALUE *argv, VALUE sym)
{
return rb_str_match_m(argc, argv, rb_sym2str(sym));
}
Returns sym.to_s.match.