Sha256: 6e0239379b2c1222772b88265898901ea554c81ff082542411f71aeface1bea2

Contents?: true

Size: 335 Bytes

Versions: 7

Compression:

Stored size: 335 Bytes

Contents

require 'slave'
#
# slaves created previously are visible to newly created slaves - in this
# example the child process of slave_a communicates directly with the child
# process of slave_a 
#
  slave_a = Slave.new{ Array.new }
  slave_b = Slave.new{ slave_a.object }

  a, b = slave_b.object, slave_a.object

  b << 42
  puts a #=> 42

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slave-1.3.2 samples/f.rb
slave-1.3.1 samples/f.rb
slave-1.3.0 samples/f.rb
slave-1.2.2 samples/f.rb
slave-1.2.0 samples/f.rb
slave-1.1.0 samples/f.rb
slave-1.2.1 samples/f.rb