From: Brian Candler Date: 2010-10-12T05:30:29+09:00 Subject: Re: Can DRbUndumped be disabled for certain return types? You mean, you want your objects to be DRbUndumped, except when you return an array of them? Then I suggest you don't include DRbUndumped in your class, but extend individual objects with DRbUndumped - except for those objects which don't need it. If you want this to be transparent, then extend DRbUndumped in your initialize method, then make another version of 'new' which doesn't. Maybe like this (totally untested) class RemoteObj def initialize(*args,&blk) extend DRbUndumped initialize_hidden(*args,&blk) end def initialize_hidden(...) .. normal initialize logic end def self.new_hidden(*args,&blk) o = allocate o.initialize_hidden(*args,&blk) o end end -- Posted via http://www.ruby-forum.com/.