Creates a new DRbArray that
either dumps or wraps all the items in the Arrayary so they can be loaded by a remote DRb
server.
# File lib/drb/drb.rb, line 524
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