class DRb::DRbArray

def self._load(s) # :nodoc:

:nodoc:
def self._load(s) # :nodoc:
  Marshal::load(s)
end

def _dump(lv) # :nodoc:

:nodoc:
def _dump(lv) # :nodoc:
  Marshal.dump(@ary)
end

def initialize(ary)

def initialize(ary)
  @ary = ary.collect { |obj|
    if obj.kind_of? DRbUndumped
      DRbObject.new(obj)
    else
      begin
        Marshal.dump(obj)
        obj
      rescue
        DRbObject.new(obj)
      end
    end
  }
end