Last active
March 22, 2016 21:27
-
-
Save drbrain/ed865cdbbab8e927a9e3 to your computer and use it in GitHub Desktop.
By overriding DRb.here? we force DRb communication
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' | |
require 'drb/unix' | |
shared = [] | |
DRb.start_service 'drbunix:', shared | |
loopback = DRb.uri | |
puts loopback | |
def DRb.here? uri | |
false | |
end | |
ro = DRbObject.new nil, loopback | |
ro << :a | |
puts shared |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment