[DOC] Improve docs for ObjectSpace::InternalObjectWrapper#internal_object_id

This commit is contained in:
Peter Zhu 2026-06-13 21:06:19 +09:00
parent d5e6dd4e7f
commit a6e302509b
Notes: git 2026-06-14 05:20:17 +00:00

View File

@ -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)
{