Why is used File.dirname(FILE) instead of simply ‘.’ ?
On Oct 14, 1:59 pm, Kless [email protected] 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.
Why is used File.dirname(FILE) instead of simply ‘.’ ?
On Oct 14, 1:59 pm, Kless [email protected] 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.
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