Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > module ObjectSpace > _id2ref
_id2ref(id) -> object
オブジェクト ID(Object#__id__)からオブジェクトを得ます。
a = "hoge" p ObjectSpace._id2ref(a.__id__) #=> "hoge"