DRb: nested remote objects?

I have followed a couple of intros and played around without luck. Given

account = DRbObject.new(nil, ‘druby://localhost:9000’)

can I get into nested attributes and have them as remote objects?

puts account.company.address.city

Or in DRb you design a “procedural” API with all you need around a
single remote object so to speak?

– fxn

On Nov 4, 2006, at 7:31 PM, Xavier N. wrote:

I have followed a couple of intros and played around without luck.
Given

account = DRbObject.new(nil, ‘druby://localhost:9000’)

can I get into nested attributes and have them as remote objects?

puts account.company.address.city

Nevermind, I opened drb/drb.rb and saw the comments there. For the
archives, the classes Company and Address suggested in the example
above have to include the DRb::DRbUndumped mixin module.

– fxn

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs