The cod gem helps with IPC
Cod allows for really simple IPC. Here's an example:
require 'cod'
comm = Cod.pipe
fork do
comm.put 1+2
end
puts "Result is #{comm.get}."
Written by Kaspar Schiess
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#N
Authors
Related Tags
#n
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#