From: Daniel Carrera Date: 2003-10-28T07:57:39+09:00 Subject: Re: File class doesn't work! On Tue, Oct 28, 2003 at 07:53:57AM +0900, Hal Fulton wrote: > >$ ls *.xml > >context.xml > >$ ruby -e 'puts File.exists?("content.xml")' > >false > >$ > > Isn't it "exist?" rather than "exists?"? They both exist =) And they both give the same result. $ ruby -e 'puts File.methods' | grep 'exist' exist? exists? $ ruby -e 'puts File.exists?("content.xml")' false $ ruby -e 'puts File.exist?("content.xml")' false $ ls context.xml context.xml =( -- Daniel Carrera | OpenPGP KeyID: 9AF77A88 PhD grad student. | Mathematics Dept. | "To understand recursion, you must first UMD, College Park | understand recursion".