vm_trace.c: trick rdoc for TracePoint#enable

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-02-01 05:20:07 +00:00
Родитель 8555c53e74
Коммит 3c8ff424c6
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1814,6 +1814,9 @@ Init_vm_trace(void)
rb_define_singleton_method(rb_cTracePoint, "trace", tracepoint_trace_s, -1);
rb_define_method(rb_cTracePoint, "__enable", tracepoint_enable_m, 3);
#if 0 /* trick rdoc, defined in prelude.rb now */
rb_define_method(rb_cTracePoint, "enable", tracepoint_enable_m, 3);
#endif
rb_define_method(rb_cTracePoint, "disable", tracepoint_disable_m, 0);
rb_define_method(rb_cTracePoint, "enabled?", rb_tracepoint_enabled_p, 0);