class Object
Constants
- INPUT_FILE
Public Instance Methods
is_block(t)
click to toggle source
# File lib/trace.rb, line 19 def is_block(t) t.event == :b_return or t.event == :b_call end
tracepoint_line(t)
click to toggle source
# File lib/trace.rb, line 23 def tracepoint_line(t) if is_block(t) t.lineno else t.self.method(t.method_id).source_location[1] end end
write_annotations(path, signatures)
click to toggle source
# File lib/trace.rb, line 15 def write_annotations(path, signatures) IO.write(path, signatures.values.join("\n")) end
write_annotations_paths(dir, paths)
click to toggle source
# File lib/trace.rb, line 10 def write_annotations_paths(dir, paths) paths_file = "#{dir}/annotations_paths.txt" IO.write(paths_file, paths.to_a.join("\n")) end