From: Florian Weber Date: 2004-06-27T22:23:03+09:00 Subject: accessing a subclass hi! im having two classes.. fruit and apple. i wanna do something like class Apple < Fruit add_something "foobar" end in the fruit class i have a add_something method which i want to save the "foobar" to a static hash in the apple class. the hash however should also not be declared in the apple class. is this somehow possible? i guess not, or? just making sure, since ruby definitely has a lot of suprises =) i guess the only other way would be to make a static hash in the fruit class which is 2d, the first dimension being the subclass.. thanks! ciao! florian