Ruby 4.0 リファレンスマニュアル

instance method ObjectSpace::InternalObjectWrapper#internal_object_id

internal_object_id -> IntegerRuby 3.0 から[permalink][rdoc][edit]

ラップしている内部オブジェクトの Object#object_id を返します。

この値は ObjectSpace::InternalObjectWrapper のインスタンスではなく、ラップされている内部オブジェクトを識別するものです。デバッグやイントロスペクションにだけ使ってください。内部オブジェクトの object_id は処理系に依存します。