1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add String/Symbol argument to MatchData[x]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosako 2006-03-21 13:16:21 +00:00
parent 1e608d0dff
commit a350e9c6e2
5 changed files with 53 additions and 6 deletions

1
re.h
View file

@ -24,6 +24,7 @@ struct RMatch {
struct RBasic basic;
VALUE str;
struct re_registers *regs;
VALUE regexp; /* RRegexp */
};
#define RMATCH(obj) (R_CAST(RMatch)(obj))