Skip to content
instance method

TracePoint#binding

() -> ::Binding?
binding

Returns the generated binding object from the event.

Note that for :c_call and :c_return events, the method returns nil, since C methods themselves do not have bindings.

Ruby version changes

  1. 3.2
See also .trace #callee_id .stat #defined_class also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0