Class: TCPSocket
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(host, serv, *rest) ⇒ TCPSocket
constructor
:startdoc:.
-
#original_resolv_initialize ⇒ Object
:stopdoc:.
Methods inherited from IPSocket
getaddress, original_resolv_getaddress
Constructor Details
#initialize(host, serv, *rest) ⇒ TCPSocket
:startdoc:
21 22 23 24 |
# File 'lib/resolv-replace.rb', line 21 def initialize(host, serv, *rest) rest[0] = IPSocket.getaddress(rest[0]) if rest[0] original_resolv_initialize(IPSocket.getaddress(host), serv, *rest) end |
Instance Method Details
#original_resolv_initialize ⇒ Object
:stopdoc:
19 |
# File 'lib/resolv-replace.rb', line 19 alias original_resolv_initialize initialize |