[#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: Dave Thomas <dave@...>
Date: 2003-04-24 03:05:22 UTC
List: ruby-core #984
nobu.nokada@softhome.net wrote:

>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?
>  
>
These printf's are because I'm a fool! :)   Sorry - during the confusion 
trying to get my CVS access to work I diff'd on the wrong machine. The 
rest of the patch is OK - we can just lose those two lines.  Thanks for 
spotting it.

Cheers


Dave


In This Thread

Prev Next