From: nobu.nokada@... Date: 2003-04-24T07:50:54+09:00 Subject: Re: IPAddr patch Hi, At Thu, 24 Apr 2003 06:21:51 +0900, Dave Thomas wrote: > @@ -685,6 +689,14 @@ > assert_equal(true, net1.include?(IPAddr.new("192.168.2.0"))) > assert_equal(true, net1.include?(IPAddr.new("192.168.2.255"))) > assert_equal(false, net1.include?(IPAddr.new("192.168.3.0"))) > + # test with integer parameter > + int = (192 << 24) + (168 << 16) + (2 << 8) + 13 > +printf "%x\n", int > +printf "%x\n", net1.to_i These printf's are for debug? -- Nobu Nakada