ruby-changes:54762
From: nobu <ko1@a...>
Date: Fri, 1 Feb 2019 14:20:11 +0900 (JST)
Subject: [ruby-changes:54762] nobu:r66979 (trunk): vm_trace.c: trick rdoc for TracePoint#enable
nobu 2019-02-01 14:20:07 +0900 (Fri, 01 Feb 2019) New Revision: 66979 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66979 Log: vm_trace.c: trick rdoc for TracePoint#enable Modified files: trunk/vm_trace.c Index: vm_trace.c =================================================================== --- vm_trace.c (revision 66978) +++ vm_trace.c (revision 66979) @@ -1814,6 +1814,9 @@ Init_vm_trace(void) https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L1814 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/