You might also be interested in the ruby zeromq tutorials I’ve been making. They do use ffi-rzmq rather than zmq however (there are only a few minor differences). You can find them at: http://github.com/andrewvc/learn-ruby-zeromq