naive_bayes/resources/ruby/connection.rb
# Tell the underlying socket to establish a connection to the host.
#
# @example Connect to the host.
#   connection.connect!
#
# @note This method mutates the connection class by setting a socket if
#   one previously did not exist.
#
# @return [ true ] If the connection succeeded.
#
# @since 3.0.0
Tell the underlying socket to establish a connection to the host.
Tell the underlying socket to establish a connection to the host .
def connect!
        unless socket
          @socket = address.socket(timeout, ssl_opts)
          @socket.connect!
        end
        true
      end
def connect! unless socket @socket = address . socket ( timeout , ssl_opts ) @socket . connect! end true end
Tell the underlying socket to establish a connection to the host.
Tell the underlying socket to establish a connection to the host .
If the connection succeeded.
If the connection succeeded .
 true 
example
Connect to the host. connection.connect!
Connect to the host . connection . connect!
note
This method mutates the connection class by setting a socket if one previously did not exist.
This method mutates the connection class by setting a socket if one previously did not exist .
since
None