From: James Edward Gray II Date: 2004-11-21T08:10:30+09:00 Subject: Re: Inner Class Relationship On Nov 20, 2004, at 5:01 PM, trans. (T. Onoma) wrote: > If I understand correctly, try passing self of parent to the the inner > object > when it's created. > > class Inner > def initialize( parent ) > @parent = parent > end > end > > class Outer > def initialize > Inner.new(self) > end > end > > With any luck, in the future we will have a "caller" method that can > refer to > the parent object from Inner#initialize, i.e. without having to > specifically > pass self. (Personally I've always thought #object_parent should be > built-in > anyway.) I don't know what it is about me and not being able to properly convey what I mean the first time. :D What you posted, is more or less what I'm doing. My desire was to find a way around using a PUBLIC method in the outer class. It's really a message that only the inner class should be able to send. James Edward Gray II