Full path require

Hi,

Is it possible to find out the full path of all the files that have
been required within a currently running script?

Aidy

On May 30, 2008, at 9:39 AM, aidy wrote:

Hi,

Is it possible to find out the full path of all the files that have
been required within a currently running script?

Aidy

oops - ignore that other post, i meant

puts $LOADED_FEATURES.map{|path| File.expand_path path}

sorry bout that…

a @ http://codeforpeople.com/

On May 30, 2008, at 9:39 AM, aidy wrote:

Hi,

Is it possible to find out the full path of all the files that have
been required within a currently running script?

Aidy

puts $:.map{|path| File.expand_path path}

a @ http://codeforpeople.com/