instance method
Symbol#match?
(::Regexp | ::string pattern, ?::int offset) -> bool
match?(pattern, offset) → true or false
string.c
View on GitHub ↗
static VALUE
sym_match_m_p(int argc, VALUE *argv, VALUE sym)
{
return rb_str_match_m_p(argc, argv, sym);
}
Equivalent to sym.to_s.match?; see String#match.