From: vinita Papur Date: 2003-05-18T13:47:55+09:00 Subject: An Object Going Out Of Scope A quick question. How can one discern when an object goes out of scope? I'd like to do something like this: create a function, which will get stuff from a database. allow a set function to set to an instance hash. When the object is going out of scope, save all that stuff to the database. is that an END {} block? I don't see DESTROY {} blocks in Ruby, and I don't want objects to live on until the process with it closes in mod_ruby, so what do I use under those conditions?