From: Neil Stevens Date: 2004-11-21T12:43:08+09:00 Subject: Re: Inner Class Relationship On Sun, 21 Nov 2004 08:10:30 +0900, James Edward Gray II wrote: > 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. class Inner attr_accessor :callback def initialize @callback = do #nothing end end def somethingHappens @callback.call end end class Outer def initialize @inner = Inner.new @inner.callback = do # something that is totally internal end end end -- Neil Stevens - neil@hakubi.us "The world is a dangerous place to live; not because of the people who are evil, but because of the people who don't do anything about it." -- Albert Einstein(?)