From: Bertram Scharpf Date: 2009-07-05T00:26:30+09:00 Subject: Re: How to remove/delete/destroy class variable in Ruby 1.9? Hi, Am Samstag, 04. Jul 2009, 23:40:32 +0900 schrieb David A. Black: > On Sat, 4 Jul 2009, Bertram Scharpf wrote: > >> class Object ; remove_class_variable "@@var" ; end > > I forgot all about that method. I guess I'm rusty on class variables, > from lack of use :-) I don't use them either. Sometimes I wonder about that because a "@@var" is much shorter than a "MyClass.var". It seems to be more disturbing you than simplifying your code. I did some weird things like these: class C ; end C.class.instance_eval "@@x = 'X'" class <