use_tracer=(opt)
public
Sets whether or not to use the Tracer library
when evaluating statements in this context.
See lib/tracer.rb for more information.
Show source
def use_tracer=(opt)
if opt
Tracer.set_get_line_procs(@irb_path) {
|line_no, *rests|
@io.line(line_no)
}
elsif !opt && @use_tracer
Tracer.off
end
@use_tracer=opt
end