From: Scott Strattner Date: 2008-10-29T05:08:24+09:00 Subject: Re: Proper way to define a subclass within parent file? Stefano Crocco wrote: > Class variables are shared among a class and all its subclasses. If you > don't > want that, you can use class instance variables, that is instance > variables of > the class object. I knew of instance variables, and class variables, but not class instance variables. It seems to do what I need, although the syntax will take some getting used to. > Another possibility, if the values in the instance variables shouldn't > change > is to use constants: I originally had methods to modify these class variables, but I just tried using constants, and that worked. So I will probably create a subclass for every kind of VLAN encountered (which will then define the constant values for that particular subclass). > I hope this helps It did. Thanks. -- Posted via http://www.ruby-forum.com/.