From: Ben Nagy Date: 2006-07-26T16:01:15+09:00 Subject: Re: Set an instance variable before and after initialize > -----Original Message----- > From: ara.t.howard@noaa.gov [mailto:ara.t.howard@noaa.gov] [...] > > def initialize > > p @a #should be set, but => nil > > but why? you haven't called super yet. try calling it first. Oh, I did that too. My point is that there is no 'before' and 'after' the code gets run at the same time and it's not possible to insert other code in between them, which was presumably the point? def initialize super p @b #should not be set yet, initialize method not finished... end ben