From: Joel VanderWerf Date: 2005-12-06T17:03:00+09:00 Subject: Re: getting around access control ara.t.howard@noaa.gov wrote: > def encode msg > @controller.instance_eval do > # > # many things which need to be insider the controller > # > end > end You could delegate: delegate(@controller).instance_eval do ... end In the delegate object, make sure everything is public and that it uses #send to delegate. The cost is bouncing messages around a bit more and not having access to instance vars.... -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407