14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/mentor.rb', line 14
def self.setup_trace_point
TracePoint.trace(:raise) do |tp|
tp.disable
if Mentor.enabled?
Mentor.disable
require_relative 'helpers/requires'
Mentor.tp = tp
Main.new
end
tp.enable
end
end
|