Sha256: 0a0191c80fdb4b478465ffb3d4873ecba7f56d601a0c7c36cf6e364940158f34
Contents?: true
Size: 395 Bytes
Versions: 4
Compression:
Stored size: 395 Bytes
Contents
require 'slave' # # simple usage is simply to stand up a server object as a slave. you do not # need to wait for the server, join it, etc. it will die when the parent # process dies - even under 'kill -9' conditions # class Server def add_two n n + 2 end end slave = Slave.new :object => Server.new server = slave.object p server.add_two(40) #=> 42 slave.shutdown
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
slave-1.2.2 | samples/a.rb |
slave-1.2.1 | samples/a.rb |
slave-1.1.0 | samples/a.rb |
slave-1.2.0 | samples/a.rb |