D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
ObjectSpace
/
Filename :
_id2ref-c.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: 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. - !ruby/struct:SM::Flow::VERB body: " s = "I am a string" #=> "I am a string"\n r = ObjectSpace._id2ref(s.object_id) #=> "I am a string"\n r == s #=> true\n" full_name: ObjectSpace::_id2ref is_singleton: true name: _id2ref params: | ObjectSpace._id2ref(object_id) -> an_object visibility: public