instance method
Symbol#match
(::Regexp | ::string pattern, ?::int offset) -> ::MatchData?
[T] (::Regexp | ::string pattern, ?::int offset) { (::MatchData matchdata) -> T } -> T?
match(pattern, offset = 0) → matchdata or nil
match(pattern, offset = 0) {|matchdata| } → object
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));
}
Equivalent to self.to_s.match, including possible updates to global variables; see String#match.