End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Symbol#=~
sym =~ obj → integer or nil
string.c
View on GitHub ↗
static VALUE
sym_match(VALUE sym, VALUE other)
{
return rb_str_match(rb_sym2str(sym), other);
}
Returns sym.to_s =~ obj.