Skip to content

Instantly share code, notes, and snippets.

@discordianfish
Created December 20, 2011 14:09
Show Gist options
  • Save discordianfish/1501679 to your computer and use it in GitHub Desktop.
Save discordianfish/1501679 to your computer and use it in GitHub Desktop.
def foo(queue, options = {}, &blk)
bar = lambda do
MQ.queue(queue, :durable => true, :auto_delete => false).subscribe(:ack => true) do |h,m|
return if AMQP.closing?
....
@discordianfish
Copy link
Author

    def foo()
      x = [ 1, 2, 3 ,4 ]
            handler = lambda do
                    x.each do |i|
                            return 23
                   end
            end
    end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment