lib/trace_location/collector.rb in trace_location-0.9.3 vs lib/trace_location/collector.rb in trace_location-0.9.3.1

- old
+ new

@@ -68,12 +68,16 @@ private def extract_method_from(trace_point) if trace_point.self.is_a?(Module) - ::Module.instance_method(:method).bind(trace_point.self).call(trace_point.method_id) + ::Module.instance_method(:method) + .bind(trace_point.self) + .call(trace_point.method_id) else - ::Kernel.instance_method(:method).bind(trace_point.self).call(trace_point.method_id) + ::Kernel.instance_method(:method) + .bind(trace_point.self) + .call(trace_point.method_id) end end def remove_indent(source) indent = source.split("\n").first.match(/\A(\s+).+\z/)[1]