From: Dave Howell Date: 2010-07-22T14:41:35+09:00 Subject: Re: File class documentation On Jul 21, 2010, at 1:39 , James O'Brien wrote: > Hi, > > I've been trying to learn about and use the ruby File class. > > when I look at the documentation: > > http://ruby-doc.org/core/classes/File.html > > I cant see any mention that File < IO (it is a subclass and hence there are > a whole load of useful methods) Wow, that's not helpful. That page looks nothing like my local HTML documentation. First sentence: "A File is an abstraction of any file object accessible by the program and is closely associated with class IO. File includes the methods of module FileTest as class methods, allowing you to write (for example) File.exist?("foo")." {dig dig} Aha. Don't use the 1.8.6. core docs. At least not for File! Use at least the 1.8.7 ones.