From: James Edward Gray II Date: 2005-10-26T01:40:28+09:00 Subject: [PATCH] Pathname.exists?() --Apple-Mail-6--520115414 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Pathname supports the legacy exist?() method, but not the current exists?(). Attached is the one-line fix to add Pathname.exists?(). James Edward Gray II --Apple-Mail-6--520115414 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="pathname_exists.diff" Content-Disposition: attachment; filename=pathname_exists.diff Index: lib/pathname.rb =================================================================== RCS file: /src/ruby/lib/pathname.rb,v retrieving revision 1.45 diff -u -r1.45 pathname.rb --- lib/pathname.rb 23 Sep 2005 23:32:29 -0000 1.45 +++ lib/pathname.rb 25 Oct 2005 16:37:23 -0000 @@ -783,6 +783,7 @@ # See FileTest.exist?. def exist?() FileTest.exist?(@path) end + alias_method :exists?, :exist? # See FileTest.grpowned?. def grpowned?() FileTest.grpowned?(@path) end --Apple-Mail-6--520115414--