Class: Net::LDAP::Connection::DefaultSocket

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ldap/connection.rb

Overview

Wrap around Socket.tcp to normalize with other Socket initializers

Class Method Summary collapse

Class Method Details

.new(host, port, socket_opts = {}) ⇒ Object



730
731
732
# File 'lib/net/ldap/connection.rb', line 730

def self.new(host, port, socket_opts = {})
  Socket.tcp(host, port, **socket_opts)
end