lib/message_queue.rb
# Public: Disconnect from the message queue if it's connected
#
# It clears out the stored connection.
#
# Returns true if it disconnects successfully
Disconnect from the message queue if it's connected
It clears out the stored connection.

Returns true if it disconnects successfully
Disconnect from the message queue if it ' s connected It clears out the stored connection . Returns true if it disconnects successfully
def disconnect
    if @connection
      @connection.disconnect
      @connection = nil
      return true
    end
    false
  end
def disconnect if @connection @connection . disconnect @connection = nil return true end false end
Public: Disconnect from the message queue if it's connected
It clears out the stored connection.
Public : Disconnect from the message queue if it ' s connected It clears out the stored connection .