summaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-17 09:53:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-17 09:53:16 +0000
commitc3e224fd2d0df59c7502cb4791284e7d11503b12 (patch)
tree2e1517e3001db55b71660fbf00db8d7d0c737653 /re.c
parente740a1ddeeaa7dc357b7b3e1985e24d4d26670cc (diff)
downloadruby-c3e224fd2d0df59c7502cb4791284e7d11503b12.tar.gz
ruby-c3e224fd2d0df59c7502cb4791284e7d11503b12.tar.xz
ruby-c3e224fd2d0df59c7502cb4791284e7d11503b12.zip
* re.c (match_captures): rename from "groups".
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index c7103c871..16b4c5e29 100644
--- a/re.c
+++ b/re.c
@@ -945,7 +945,7 @@ match_to_a(match)
}
static VALUE
-match_groups(match)
+match_captures(match)
VALUE match;
{
return match_array(match, 1);
@@ -1771,7 +1771,7 @@ Init_Regexp()
rb_define_method(rb_cMatch, "end", match_end, 1);
rb_define_method(rb_cMatch, "to_a", match_to_a, 0);
rb_define_method(rb_cMatch, "[]", match_aref, -1);
- rb_define_method(rb_cMatch, "groups", match_groups, 0);
+ rb_define_method(rb_cMatch, "captures", match_captures, 0);
rb_define_method(rb_cMatch, "select", match_select, -1);
rb_define_method(rb_cMatch, "values_at", match_values_at, -1);
rb_define_method(rb_cMatch, "pre_match", rb_reg_match_pre, 0);