James Gray
3/2/2007 2:04:00 PM
On Mar 2, 2007, at 7:55 AM, Deniz Dogan wrote:
> Hello.
Hello.
> I'm rather new to Ruby, so please bare with me.
Welcome to Ruby then.
> I just want to know if there is anything similar to __FILE__ but
> which represents either the path to the directory which __FILE__
> lies in, or the __FILE__ including the full path to the file?
Just ask Ruby to expand it for you:
File.expand_path(__FILE__)
Hope that helps.
James Edward Gray II