require 'drb/drb' require 'drb/unix' # A dummy object class Foo include DRbUndumped def foo(n) n + n end def bar(n) yield(n) + yield(n) end end # Start a UNIX socket-based service DRb.start_service 'drbunix:', nil # Store a Foo object in the gateway gw = DRbObject.new nil, ARGV.shift gw[:unix] = Foo.new DRb.thread.join