Class: RBS::Trace::MethodTracing

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs/trace/method_tracing.rb

Overview

rubocop:disable Metrics/ClassLength

Instance Method Summary collapse

Instance Method Details

#disableObject



17
18
19
# File 'lib/rbs/trace/method_tracing.rb', line 17

def disable
  trace.disable
end

#enableObject



12
13
14
# File 'lib/rbs/trace/method_tracing.rb', line 12

def enable(&)
  trace.enable(&)
end

#filesObject



22
23
24
# File 'lib/rbs/trace/method_tracing.rb', line 22

def files
  @files ||= {}
end

#insert_rbsObject



27
28
29
# File 'lib/rbs/trace/method_tracing.rb', line 27

def insert_rbs
  files.each_value(&:rewrite)
end