There's also SCRIPT_LINES__, which captures all your 'require' and
'load's in a hash (except for C modules):

http://redhanded.hobix.com/inspect/whoaScript_lines__.html

AegisThorne / gmail.com wrote:
> The Zen Spider has done some work on this :
> http://blog.zenspider.com/archives/2005/02/rubytoruby.html.
> 
> You might find it interesting ;)