Class: TCPSocket
- Inherits:
-
Object
- Object
- TCPSocket
- Defined in:
- lib/net/dns/resolv-replace.rb
Instance Method Summary collapse
-
#initialize(host, serv, *rest) ⇒ TCPSocket
constructor
A new instance of TCPSocket.
- #original_resolv_initialize ⇒ Object
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_initialize ⇒ Object
20 |
# File 'lib/net/dns/resolv-replace.rb', line 20 alias original_resolv_initialize initialize |