Class: Tracer
- Inherits:
-
Object
- Object
- Tracer
- Defined in:
- lib/function_trace/tracer.rb
Instance Method Summary collapse
Instance Method Details
#trace(path, code) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/function_trace/tracer.rb', line 23 def trace(path, code) case recognize(path, code) when "ruby" RubyTracer.new.trace(code) when "php", "javascript" CSyntaxTracer.new.trace(code) when "python" PythonTracer.new.trace(code) else [] end end |