instance method
Symbol#=~
(::Regexp regex) -> ::Integer?
[T] (::String::_MatchAgainst[::String, T] object) -> T
symbol =~ object → integer or nil
string.c
View on GitHub ↗
static VALUE
sym_match(VALUE sym, VALUE other)
{
return rb_str_match(rb_sym2str(sym), other);
}
Equivalent to symbol.to_s =~ object, including possible updates to global variables; see String#=~.