From: Nobuyoshi Nakada Date: 2007-12-16T12:46:03+09:00 Subject: Re: _id2ref in finalize or how get object.var from class.finalize Hi, At Sun, 16 Dec 2007 03:53:49 +0900, Andrey Nikitin wrote in [ruby-talk:283702]: > def MyClass.finalize(object_id) > o = _id2ref(object_id) > puts "from finalize: #{o.var}" > end Finalizer is called after the object was disposed. So _id2ref raises an exception. > How it is possible to get access to variables or methods of a object > from a method of a class :finalize? It does not exist at that moment any more. -- Nobu Nakada