# File lib/moqueue/mock_queue.rb, line 25 def subscribe(opts={}, &block) if @subscribe_block raise DoubleSubscribeError, "you can't subscribe to the same queue twice" end @subscribe_block = block @ack_msgs = opts[:ack] || false process_unhandled_messages end