diff options
author | Kevin Newton <[email protected]> | 2023-08-02 13:17:31 -0400 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-08-16 17:47:32 -0700 |
commit | 820a58c228b8dbd29915065f8e5f18a61442bb88 (patch) | |
tree | 0fe2c60f23ccfe150f624e0728a515890018c642 /yarp/extension.c | |
parent | 1ea9e444ecbd089b8216eff3cd5d05e34912736b (diff) |
[ruby/yarp] Hide debug methods
https://github.com/ruby/yarp/commit/aa0dc2f301
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8226
Diffstat (limited to 'yarp/extension.c')
-rw-r--r-- | yarp/extension.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/yarp/extension.c b/yarp/extension.c index 1044dc3d08..d4ce3625d8 100644 --- a/yarp/extension.c +++ b/yarp/extension.c @@ -512,12 +512,13 @@ Init_yarp(void) { // Next, the functions that will be called by the parser to perform various // internal tasks. We expose these to make them easier to test. - rb_define_singleton_method(rb_cYARP, "named_captures", named_captures, 1); - rb_define_singleton_method(rb_cYARP, "unescape_none", unescape_none, 1); - rb_define_singleton_method(rb_cYARP, "unescape_minimal", unescape_minimal, 1); - rb_define_singleton_method(rb_cYARP, "unescape_all", unescape_all, 1); - rb_define_singleton_method(rb_cYARP, "memsize", memsize, 1); - rb_define_singleton_method(rb_cYARP, "profile_file", profile_file, 1); + VALUE rb_cYARPDebug = rb_define_module_under(rb_cYARP, "Debug"); + rb_define_singleton_method(rb_cYARPDebug, "named_captures", named_captures, 1); + rb_define_singleton_method(rb_cYARPDebug, "unescape_none", unescape_none, 1); + rb_define_singleton_method(rb_cYARPDebug, "unescape_minimal", unescape_minimal, 1); + rb_define_singleton_method(rb_cYARPDebug, "unescape_all", unescape_all, 1); + rb_define_singleton_method(rb_cYARPDebug, "memsize", memsize, 1); + rb_define_singleton_method(rb_cYARPDebug, "profile_file", profile_file, 1); // Next, initialize the pack API. Init_yarp_pack(); |