End of Life Ruby 3.1 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.1.3/trace_point.rb, line 343
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')