> No, objects in Ruby are simply garbage collected > when they go out of scope. It is never neccesary to explicitly > destroy an object. If there is any work you need done > before an object goes away, you had best do it before you let > it out of scope. > for example, I openned a database handler in a class, and new an object from this class, when the object go out of the scope, I want it close the database handler automatically. so how to implement this in Ruby? thanks again. Regards, W.