From: Eric Hodel Date: 2004-09-20T03:55:38+09:00 Subject: [PATCH] delegate.rb has debugging p --Apple-Mail-3--798315057 Content-Type: multipart/mixed; boundary=Apple-Mail-2--798315072 --Apple-Mail-2--798315072 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed While using DL with a Tempfile, I found it printing [:to_ptr] during my tests. I looked all over DL to find where this mystery printout came from, but eventually caught it in delegate.rb when I noticed that it only printed out when I was used Tempfile. Attached is the patch. --Apple-Mail-2--798315072 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="delegate.diff" Content-Disposition: attachment; filename=delegate.diff Index: lib/delegate.rb =================================================================== RCS file: /src/ruby/lib/delegate.rb,v retrieving revision 1.18 diff -u -9 -p -r1.18 delegate.rb --- lib/delegate.rb 7 May 2004 08:44:22 -0000 1.18 +++ lib/delegate.rb 19 Sep 2004 18:50:58 -0000 @@ -86,19 +86,18 @@ def DelegateClass(superclass) klass = Class.new methods = superclass.public_instance_methods(true) methods -= ::Kernel.public_instance_methods(false) methods |= ["to_s","to_a","inspect","==","=~","==="] klass.module_eval { def initialize(obj) @_dc_obj = obj end def method_missing(m, *args) - p [m, *args] unless @_dc_obj.respond_to?(m) super(m, *args) end @_dc_obj.__send__(m, *args) end def __getobj__ @_dc_obj end def __setobj__(obj) --Apple-Mail-2--798315072 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed -- Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --Apple-Mail-2--798315072-- --Apple-Mail-3--798315057 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFBTdeLMypVHHlsnwQRAsqYAJ0b+QmvYrgcxAc6i5dxDwfs6pHvmACfaejg 8Txj5A6LuY0c9fnSsKCoeYg= =uT47 -----END PGP SIGNATURE----- --Apple-Mail-3--798315057--