Class: Purist::TracePointSlice

Inherits:
Object
  • Object
show all
Defined in:
lib/purist/trace_point_slice.rb

Class Method Summary collapse

Class Method Details

.call(trace_point) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/purist/trace_point_slice.rb', line 5

def self.call(trace_point)
  {
    path: trace_point.path,
    lineno: trace_point.lineno,
    module_name: trace_point.defined_class,
    method_name: trace_point.callee_id,
    backtrace: trace_point.binding.send(:caller)
  }
end