Through some caller() and load path searching, I’ve found you can get
the full path to the file requiring the one you’re currently in…Is
there a built-in or easier way of doing this though?
thanks!
Through some caller() and load path searching, I’ve found you can get
the full path to the file requiring the one you’re currently in…Is
there a built-in or easier way of doing this though?
thanks!
On Oct 29, 2007, at 11:28 AM, Jack D. wrote:
Through some caller() and load path searching, I’ve found you can get
the full path to the file requiring the one you’re currently in…Is
there a built-in or easier way of doing this though?
over ride Kernel#require and Kernel#load
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