Class: PythonTracer

Inherits:
Object
  • Object
show all
Defined in:
lib/function_trace/python_tracer.rb

Instance Method Summary collapse

Instance Method Details

#trace(code) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/function_trace/python_tracer.rb', line 4

def trace(code)
  code = strip_comments(code)
  find_funcs(code)
    .map { |func| define_func(func, code) }
rescue => e
  byebug
  []
end