From: Dave Thomas Date: 2001-01-17T01:04:05+09:00 Subject: [ruby-talk:9388] Re: fileExists function? "Morris, Chris" writes: > > File#exist? > > > > irb(main):001:0> File.exist?('/etc/passwd') > > true > > irb(main):002:0> File.exist?('/etc/fakefile') > > false > > Hmm. The Ruby book doesn't document this function here -- I just now found > it under module FileTest. Is this a problem with the book (doubtful) or my > understanding (probable )? Chris: Class File mixes in FileTest, so you get access that way. It's documented on p306, but the fact that you missed it probably means there is a problem with the book. How could we have made it more obvious? We won't be able to change it immediately, but any good ideas might make it into the second edition. Dave