[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>

I'm wondering what I can do with a Proc generated by

17 messages 2003/04/06

Re: IPAddr patch

From: nobu.nokada@...
Date: 2003-04-23 22:50:54 UTC
List: ruby-core #983
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

In This Thread