Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
full path require
aidy
5/30/2008 3:40:00 PM
Hi,
Is it possible to find out the full path of all the files that have
been required within a currently running script?
Aidy
2 Answers
ara.t.howard
5/30/2008 4:08:00 PM
0
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://codeforp...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama
ara.t.howard
5/30/2008 4:08:00 PM
0
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://codeforp...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
full path require
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password