End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
TracePoint#self
self
trace_point.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/trace_point.rb, line 393
def self
Primitive.tracepoint_attr_self
end
Return the trace object during event
Same as the following, except it returns the correct object (the method receiver) for c_call and c_return events:
Example
trace.binding.eval('self')