[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Actual directory

Kless

10/14/2008 11:55:00 AM

Why is used *File.dirname(__FILE__)* instead of simply '.' ?
1 Answer

Antonin Amand

10/14/2008 12:09:00 PM

0



On Oct 14, 1:59=A0pm, Kless <jonas....@googlemail.com> wrote:
> Why is used *File.dirname(__FILE__)* instead of simply '.' ?

Cause your current directory '.' is not always the location of the
ruby file, __FILE__ is.