From: gene.tani@... Date: 2005-05-24T06:15:18+09:00 Subject: Re: Determining what file contains a module/class For ruby-coded classes/modules only, Hugh Sasse's comprehensive RDOC of every file/ class/method (builtins only, no Std. Lib): http://www.eng.cse.dmu.ac.uk/~hgs/ruby/RUBY_SNAPSHOT_RDOC/index.html (Also not sure which 1.8 snapshot this is) Austin Ziegler wrote: > On 5/21/05, Nicholas Wieland wrote: > > Hi *, > > I need to find the file that contains a known module or class, to > > "inspect" the source code and extract what I need from the file. > > Something like: > > > > >> require 'digest' > > >> Digest::base_file > > '/usr/local/lib/ruby/1.8/digest.rb' > > The problem in this case is that digest is specifically in digest.so, > not digest.rb. It also doesn't help if a module or class is defined > across multiple files, which is certainly permitted in Ruby. > > -austin > -- > Austin Ziegler * halostatue@gmail.com > * Alternate: austin@halostatue.ca