N
Nicholas Wieland
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:
'/usr/local/lib/ruby/1.8/digest.rb'
I already had some suggestions on IRC that involve scanning through all
the files in the path with a regexp, and in fact it solves my problem,
but I think it's a bit overcomplicated, so I'd like to know if there's
some other way that avoids all that scanning.
TIA,
ngw
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:
'/usr/local/lib/ruby/1.8/digest.rb'
I already had some suggestions on IRC that involve scanning through all
the files in the path with a regexp, and in fact it solves my problem,
but I think it's a bit overcomplicated, so I'd like to know if there's
some other way that avoids all that scanning.
TIA,
ngw