Hi,
Is it possible to find out the full path of all the files that have
been required within a currently running script?
Aidy
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…
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}
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs