From: matt@... (matt neuburg) Date: 2006-11-27T11:10:05+09:00 Subject: Re: Extremely Noobish Documentation Question Ross Bamford wrote: > On Sun, 26 Nov 2006 23:09:07 -0000, matt neuburg wrote: > > > It might be helpful to have on hand a script that reports a class's > > methods by cycling up the inheritance chain for you: > > > > Or, get fastri: > > $ fri File.open > --------------------------------------------------------------- IO::open > IO.open(fd, mode_string="r" ) => io > IO.open(fd, mode_string="r" ) {|io| block } => obj Nevertheless, fastri does not list "open" among File's method's: matt-neuburgs-imac-g5:~ mattneub$ fri File ------------------------------------------------------------ Class: File [snip] ------------------------------------------------------------------------ [snip] Class methods: atime, basename, blockdev?, catname, chardev?, chmod, chmod, chown, compare, copy, ctime, delete, directory?, dirname, executable?, executable_real?, exist?, exists?, expand_path, extname, file?, fnmatch, fnmatch?, ftype, grpowned?, identical?, install, join, lchmod, lchown, link, lstat, makedirs, move, mtime, new, owned?, pipe?, readable?, readable_real?, readlink, rename, safe_unlink, setgid?, setuid?, size, size?, socket?, split, stat, sticky?, symlink, symlink?, syscopy, truncate, umask, unlink, utime, writable?, writable_real?, zero? Instance methods: atime, chmod, chown, ctime, flock, lstat, mtime, o_chmod, path, truncate That is why I supplied a script that does list it. Perhaps this could be a reasonable feature request for a future version of fastri. m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Tiger - http://www.takecontrolbooks.com/tiger-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com