string()
public
Returns a frozen copy of the string
passed in to match.
m = /(.)(.)(\d+)(\d)/.match("THX1138.")
m.string
Show source
/*
* call-seq:
* mtch.string => str
*
* Returns a frozen copy of the string passed in to <code>match</code>.
*
* m = /(.)(.)(\d+)(\d)/.match("THX1138.")
* m.string
*/
static VALUE
match_string(match)
VALUE match;
{
match_check(match);
return RMATCH(match)->str; /* str is frozen */
}