On Thu, Mar 28, 2002 at 02:29:46AM +0900, Wladimir Mutel wrote:
> 	Are they possible ? Like 'finalize' method in Java. To do something
> 	special with object lost its last reference or garbage-collected.

Yes, you can, but see [ruby-talk:35506] and related threads for better
options.  See http://www.rubycentral.com/book/ref_m_objectspace.html and
http://www.rubygarden.org/ruby?DiscussionOnUsingFinalizers for how to
use finalizers, if you still want to go that route.

Paul