Bug #13593 ยป addrinfo_eql.diff
ext/socket/lib/socket.rb | ||
---|---|---|
def self.foreach(nodename, service, family=nil, socktype=nil, protocol=nil, flags=nil, &block)
|
||
Addrinfo.getaddrinfo(nodename, service, family, socktype, protocol, flags).each(&block)
|
||
end
|
||
# compares self with other
|
||
def ==(other)
|
||
return self.inspect == other.inspect
|
||
end
|
||
alias_method :eql? :==
|
||
end
|
||
class BasicSocket < IO
|