Project

General

Profile

Feature #8396 ยป match_data_to_ary.patch

goshakkk (Gosha Arinich), 05/12/2013 06:49 PM

View differences:

re.c
3599 3599
    rb_define_method(rb_cMatch, "to_a", match_to_a, 0);
3600 3600
    rb_define_method(rb_cMatch, "[]", match_aref, -1);
3601 3601
    rb_define_method(rb_cMatch, "captures", match_captures, 0);
3602
    rb_define_alias(rb_cMatch, "to_ary", "captures");
3602 3603
    rb_define_method(rb_cMatch, "values_at", match_values_at, -1);
3603 3604
    rb_define_method(rb_cMatch, "pre_match", rb_reg_match_pre, 0);
3604 3605
    rb_define_method(rb_cMatch, "post_match", rb_reg_match_post, 0);