ObjectSpace._id2ref(object_id) â an_object
Class Public methods
Converts an object id to a reference to the object. May not be called on an object id passed as a parameter to a finalizer.
1 2 3 | s = "I am a string" #=> "I am a string" r = ObjectSpace._id2ref(s.object_id) #=> "I am a string" r == s #=> true |
Please login to continue.