lib/mongo/cluster.rb
def connected?
      @update_lock.synchronize do
        !!@connected
      end
    end
# Whether the cluster object is connected to its cluster.
#
# @return [ true|false ] Whether the cluster is connected.
#
# @api private
# @since 2.7.0
Whether the cluster object is connected to its cluster.
Whether the cluster object is connected to its cluster .
def connected?
      @update_lock.synchronize do
        !!@connected
      end
    end
def connected? @update_lock . synchronize do ! ! @connected end end
Whether the cluster object is connected to its cluster.
Whether the cluster object is connected to its cluster .
Whether the cluster is connected.
Whether the cluster is connected .
 true|false 
api
None
since
None