зеркало из https://github.com/github/ruby.git
[DOC] Update TracePoint#binding docs for 3.2 behavior
This commit is contained in:
Родитель
01509f344a
Коммит
0c0b9191ce
|
@ -377,9 +377,8 @@ class TracePoint
|
|||
|
||||
# Return the generated binding object from event.
|
||||
#
|
||||
# Note that for +c_call+ and +c_return+ events, the binding returned is the
|
||||
# binding of the nearest Ruby method calling the C method, since C methods
|
||||
# themselves do not have bindings.
|
||||
# Note that for +c_call+ and +c_return+ events, the method will return
|
||||
# +nil+, since C methods themselves do not have bindings.
|
||||
def binding
|
||||
Primitive.tracepoint_attr_binding
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче