-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nathan Olberding wrote: > I have a case where I'd like to delete an instance of a class I made > myself. How do I do that? > > The problem I'm having is that while iterating through a loop, I'm > constantly trying to reassign the same variable name to a different > instance, but Ruby is just adding the new data to the old, so I'm > mounting piles and piles of unwanted data on an instance. Some code would help. Saying: a = 1 a = 2 a = 3 Will *always* reassign variable 'a' to something new. My guess is you aren't really reassigning your reference to a new value. But it's hard to say without any code cause no one can tell what you are doing. Zach -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFENo3JMyx0fW1d8G0RAqN4AJ4yQ+netLhX3nqNAKM4k8fj/kYSAQCfT899 zFfsDvypayWzWW4sLBdJQS4= =DELC -----END PGP SIGNATURE-----