Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

ObjectSpace::InternalObjectWrapper

< Object 3 instance methods

ObjectSpace::InternalObjectWrapper wraps objects that are internal to the CRuby implementation and usually not directly visible in Ruby code.

ObjectSpace.reachable_objects_from and ObjectSpace.reachable_objects_from_root return instances of this class when a reachable object is an internal object. Some other ObjectSpace methods, such as ObjectSpace.internal_super_of, may also return wrapped internal objects.

An InternalObjectWrapper is a debugging and introspection object. Do not use it in application code. The wrapped object and the exact details of this class are implementation specific and may change in future versions.

Instance methods 3