From: Ross Bamford Date: 2006-11-27T08:20:08+09:00 Subject: Re: Extremely Noobish Documentation Question 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 ------------------------------------------------------------------------ With no associated block, open is a synonym for IO::new. If the optional code block is given, it will be passed io as an argument, and the IO object will automatically be closed when the block terminates. In this instance, IO::open returns the value of the block. It handles the inheritance stuff much better than RI. See http://eigenclass.org/hiki.rb?fastri+0.2.0 -- Ross Bamford - rosco@roscopeco.remove.co.uk