module Fluffle
  module Connectable
    def self.included(klass)
      klass.class_eval do
        attr_reader :connection
      end
    end

    def connect(*args)
      self.stop if self.connected?

      @connection = Bunny.new *args
      @connection.start
    end

    def connected?
      @connection&.connected?
    end
  end
end

module Fluffle
  module Connectable
    def self.included(klass)
      klass.class_eval do
        attr_reader :connection
      end
    end

    def connect(*args)
      self.stop if self.connected?

      @connection = Bunny.new *args
      @connection.start
    end

    def connected?
      @connection && @connection.connected?
    end
  end
end

Remove another pre-2.3-incompatible safe navigation operator
Remove another pre-2.3-incompatible safe navigation operator
