lib/message_queue/connection.rb
# Public: Connect to the message, execute the block and disconnect
#
# Returns nothing
Connect to the message, execute the block and disconnect
Returns nothing
Connect to the message execute the block and disconnect Returns nothing
def with_connection(&block)
    begin
      connect
      block.call(self)
    ensure
      disconnect
    end
  end
def with_connection ( & block ) begin connect block . call ( self ) ensure disconnect end end
Public: Connect to the message, execute the block and disconnect
Returns nothing
Public : Connect to the message execute the block and disconnect Returns nothing
block
<not_specific>