mirror of
https://github.com/ruby/ruby.git
synced 2026-08-03 13:08:59 +08:00
[DOC] Improve docs for ObjectSpace::InternalObjectWrapper#internal_object_id
This commit is contained in:
parent
d5e6dd4e7f
commit
a6e302509b
Notes:
git
2026-06-14 05:20:17 +00:00
@ -546,7 +546,16 @@ iow_inspect(VALUE self)
|
||||
return rb_sprintf("#<InternalObject:%p %"PRIsVALUE">", (void *)obj, rb_sym2str(type));
|
||||
}
|
||||
|
||||
/* Returns the Object#object_id of the internal object. */
|
||||
/*
|
||||
* call-seq:
|
||||
* internal_object_id -> integer
|
||||
*
|
||||
* Returns the Object#object_id of the wrapped internal object.
|
||||
*
|
||||
* This value identifies the wrapped internal object, not the
|
||||
* ObjectSpace::InternalObjectWrapper instance. Use it only for debugging and
|
||||
* introspection; object ids of internal objects are implementation specific.
|
||||
*/
|
||||
static VALUE
|
||||
iow_internal_object_id(VALUE self)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user