Skip to content

Instantly share code, notes, and snippets.

@igaiga
Created December 25, 2010 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igaiga/754590 to your computer and use it in GitHub Desktop.
Save igaiga/754590 to your computer and use it in GitHub Desktop.
#=> irb
require 'drb'
#=> true
$ts = DRbObject.new_with_uri('druby://localhost:12345')
#=> #<DRb::DRbObject:0x10136d740 @uri="druby://localhost:12345", @ref=nil>
$ts.write(["message", "Hello, world!"])
#=> #<DRb::DRbObject:0x10135e060 @uri="druby://127.0.0.1:12345", @ref=2152218120>
$ts.take(["message",nil])
#=> ["message", "Hello, world!"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment