# frozen_string_literal: true
#
# irb/lib/tracer.rb -
# by Keiju ISHITSUKA([email protected])
#
# Loading the gem "tracer" will cause it to extend IRB commands with:
# https://github.com/ruby/tracer/blob/v0.2.2/lib/tracer/irb.rb
begin
require "tracer"
rescue LoadError
$stderr.puts "Tracer extension of IRB is enabled but tracer gem wasn't found."
return # This is about to disable loading below
end
module IRB
class CallTracer < ::CallTracer
IRB_DIR = File.expand_path('../..', __dir__)
def skip?(tp)
super || tp.path.match?(IRB_DIR) || tp.path.match?('