mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Fill undocumented documents
This commit is contained in:
parent
b4dfdb915d
commit
6179cc0118
12 changed files with 103 additions and 3 deletions
1
re.c
1
re.c
|
@ -4855,6 +4855,7 @@ Init_Regexp(void)
|
|||
rb_define_method(rb_cRegexp, "named_captures", rb_reg_named_captures, 0);
|
||||
rb_define_method(rb_cRegexp, "timeout", rb_reg_timeout_get, 0);
|
||||
|
||||
/* Raised when regexp matching timed out. */
|
||||
rb_eRegexpTimeoutError = rb_define_class_under(rb_cRegexp, "TimeoutError", rb_eRegexpError);
|
||||
rb_define_singleton_method(rb_cRegexp, "timeout", rb_reg_s_timeout_get, 0);
|
||||
rb_define_singleton_method(rb_cRegexp, "timeout=", rb_reg_s_timeout_set, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue