From: Sausheong Chang Date: 2009-12-10T01:20:44+09:00 Subject: Re: DRB class in array Thanks! That worked, though a bit messier than I would have liked it. Brian Candler wrote: > > Try this: > > @observers = [].extend DRb::DRbUndumped > > I think the same thing is happening one level down: although the Room > instance stays where it is, when you make a call across the net to > room.observers the return value is a *copy* of this array. > > Another solution is to remove the attr_accessor for observers > completely, and instead implement separate methods for what the client > really needs to do - e.g. add an observer, remove an observer, iterate > across observers. -- Posted via http://www.ruby-forum.com/.