Module: Kernel
- Defined in:
- (unknown)
Instance Method Summary collapse
Instance Method Details
#blab_trace(trace) ⇒ Object
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'ext/blab_trace.c', line 167
static VALUE rb_blab_trace(VALUE obj, VALUE trace)
{
rb_remove_event_hook(blab_trace_func);
if (NIL_P(trace)) {
return Qnil;
}
if (!rb_obj_is_proc(trace)) {
rb_raise(rb_eTypeError, "trace_func needs to be Proc");
}
rb_add_event_hook(blab_trace_func, RUBY_EVENT_ALL, trace);
return trace;
}
|