Class: IPSocket
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/resolv-replace.rb |
Class Method Summary
- .getaddress(host)
- .original_resolv_getaddress Internal use only
Class Method Details
.getaddress(host)
[ GitHub ]# File 'lib/resolv-replace.rb', line 10
def getaddress(host) begin return Resolv.getaddress(host).to_s rescue Resolv::ResolvError raise SocketError, "Hostname not known: #{host}" end end
.original_resolv_getaddress
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv-replace.rb', line 8
alias original_resolv_getaddress getaddress