From: Michael Neumann Date: 2001-07-22T03:25:10+09:00 Subject: [ruby-talk:18263] Re: RCR: Transient instance variables On Sat, Jul 21, 2001 at 11:20:22PM +0900, ts wrote: > >>>>> "M" == Michael Neumann writes: > > class Transient > def transient > obj = self.dup > trans = self.class.class_eval "@transient" > trans = [trans] unless trans.kind_of? Array > trans.each do |var| > obj.instance_eval %q|remove_instance_variable var| > end > obj > end > end This works fine, but has one major drawback, that you have to call it explicitly. DRb for example would not take notice of it. Regards, Michael -- Michael Neumann *** eMail uu9r@rz.uni-karlsruhe.de