Project

General

Profile

Bug #13593 ยป addrinfo_eql.diff

valerauko (Balint Erdos), 06/02/2017 04:40 PM

View differences:

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
    (1-1/1)