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:
23 24 25 26 |
# File 'lib/resolv-replace.rb', line 23 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:
21 |
# File 'lib/resolv-replace.rb', line 21 alias original_resolv_initialize initialize |