From: Austin Ziegler Date: 2003-12-10T07:30:15+09:00 Subject: Re: Inheriting variables, super, and "not super"? class Y def y_init p "in Y#y_init" @y_var_2 = 0 end def initialize p "in Y#initialize" @y_var = 0 y_init if initiator == Y end def initiator self.class end end class X < Y def initialize p "in X#initialize" super @x_var = 0 end end -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2003.12.09 * 17.30.01