From: Sebastian Hungerecker Date: 2009-01-02T19:50:18+09:00 Subject: Re: context of self Sijo Kg wrote: > Second.new >        I got result as > in First class# > in second class# > >          So is # always means from where I call the > def? I did not understand it self is the current object (in this case the object just constructed by new). The output of inspect does not change depending on where inspect is called from, nor does the value of self change when you call super. In other words: if you call self.inspect and self is an object of class Second, you'll call Second#inspect which, unless overridden, will return "#", and if you call Second.new, self will indeed be an object of class Second. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826