M
Master Marv
hi,
i would like to store an array of this very simple class on a drb server
class IEB_wrapper1
attr_accessor :status
def initialize
@status="ready"
end
end
the object on the drb server is an array:
dump=[]
DRb.start_service "druby://BLA:55555", dump
if a client modifies the status variable of a class instance in the
array it does not get changed.
dump = DRbObject.new nil, ARGV.shift
myclass = IEB_wrapper1.new
dump.push myclass
dump[0].status = "Hello"
p dump[0].status => results in "ready" not in "Hello"
how can i modify the status of my class in the array on the drb server?
i would like to store an array of this very simple class on a drb server
class IEB_wrapper1
attr_accessor :status
def initialize
@status="ready"
end
end
the object on the drb server is an array:
dump=[]
DRb.start_service "druby://BLA:55555", dump
if a client modifies the status variable of a class instance in the
array it does not get changed.
dump = DRbObject.new nil, ARGV.shift
myclass = IEB_wrapper1.new
dump.push myclass
dump[0].status = "Hello"
p dump[0].status => results in "ready" not in "Hello"
how can i modify the status of my class in the array on the drb server?