on() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/tracer.rb, line 54
  def on
    if block_given?
      on
      begin
        yield
      ensure
        off
      end
    else
      set_trace_func method(:trace_func).to_proc
      stdout.print "Trace on\n" if Tracer.verbose?
    end
  end
Register or log in to add new notes.