-
-
Save havenwood/5d5fc1cad2fd83008fc1 to your computer and use it in GitHub Desktop.
Some DRb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'drb' | |
URI = 'druby://localhost:5555' | |
FRONT = {} | |
DRb.start_service URI, FRONT | |
DRb.thread.join |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'drb' | |
front = DRbObject.new_with_uri 'druby://localhost:5555' | |
front[:aim] = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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