Class
An Array wrapper that can be sent to another server via DRb
.
All entries in the array will be dumped or be references that point to the local server.
Class Methods
::
lib/drb/drb.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/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