Skip to content

Instantly share code, notes, and snippets.

@havenwood
Last active August 29, 2015 14:16
Show Gist options
  • Save havenwood/5d5fc1cad2fd83008fc1 to your computer and use it in GitHub Desktop.
Save havenwood/5d5fc1cad2fd83008fc1 to your computer and use it in GitHub Desktop.
Some DRb
require 'drb'
URI = 'druby://localhost:5555'
FRONT = {}
DRb.start_service URI, FRONT
DRb.thread.join
require 'drb'
front = DRbObject.new_with_uri 'druby://localhost:5555'
front[:aim] = true
require 'drb'
front = DRbObject.new_with_uri 'druby://localhost:5555'
front[:aim]
#=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment