Class: TCPSocket

Inherits:
Object
  • Object
show all
Defined in:
lib/net/dns/resolv-replace.rb

Instance Method Summary collapse

Constructor Details

#initialize(host, serv, *rest) ⇒ TCPSocket

Returns a new instance of TCPSocket.



21
22
23
24
# File 'lib/net/dns/resolv-replace.rb', line 21

def initialize(host, serv, *rest)
  rest[0] = IPSocket.getaddress(rest[0]) unless rest.empty?
  original_resolv_initialize(IPSocket.getaddress(host), serv, *rest)
end

Instance Method Details

#original_resolv_initializeObject



20
# File 'lib/net/dns/resolv-replace.rb', line 20

alias original_resolv_initialize initialize