Implementation Of Reactor Pattern in Ruby