From: David Garamond Date: 2003-01-23T22:42:07+09:00 Subject: Re: POLS (with one case: "class variable") Justin White wrote: >> i'm mostly concerned with terminology. when people wants "class >> variable", they actually want "instance variable of class" in ruby. > > which do you want, instance variables or class variables? they're both > inherited by subclasses, just as both kinds of methods are. there is > only one instance of each _class definition_, and hence only one > instance of class variables and class methods. unless you redefine them > in the subclass, the ascentor's class methods will be used. as mauricio pointed out, i was talking about "class instance variable" (instance variable @var that is declard directly under the class definition, not under method definition). is this somehow inherited to subclasses too like a class variable (@@var)? -- dave