From: "Peña, Botp" Date: 2008-06-17T08:58:21+09:00 Subject: Re: Can Ruby compare IPv6 ? From: Iñaki Baz Castillo [mailto:ibc@aliax.net] # Hi, is there any cool way in Ruby to match two IPv6 that have # the same binary value? For example: # 2001:0DB8:0:0::0:1428:57ab # is the same as: # 2001:0DB8:0::0:1428:57ab # Can Ruby match those two IPv6 easily without abing to parse # manually them? require 'ipaddr' #=> true ip1= IPAddr.new "2001:0DB8:0:0::0:1428:57ab" #=> # ip2= IPAddr.new "2001:0DB8:0::0:1428:57ab" #=> # ip1==ip2 #=> true kind regards -botp