End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
DRb::DRbArray.new
new(ary)
lib/drb/drb.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/drb/drb.rb, line 522
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
Creates a new DRbArray that either dumps or wraps all the items in the Array ary so they can be loaded by a remote DRb server.