Method: Moped::Connection#connect
- Defined in:
- lib/moped/connection.rb
#connect(host, port, timeout) ⇒ TCPSocket
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Connect to the server.
34 35 36 |
# File 'lib/moped/connection.rb', line 34 def connect(host, port, timeout) @sock = TCPSocket.connect host, port, timeout end |