I’m using IPAddr objects as hash keys. So I need the hash and eql?
function as described in this post from the year 2004, which I’m
It looks like a very simple and useful addition to the class. Could
someone please consider?
While we are on the subject of IPAddr… I also want to be able to
retrieve the netmask of the IP Address like this:
netrange = IPAddr.new “192.168.1.0/24”
netmask_of_netrange = netrange.mask_addr # => 24
I’m using the class as a nice IP address/netrange parser as well.
So, in all, I’m proposing a patch
alias eql? ==
I can already do all these locally, but I thought it’d be sensible to
be included in the standard library. What do you think?
On Jan 12 2004, 4:54 pm, Neil S. [email protected]