dir

suggest change

__dir__ is not a constant but a function

__dir__ is equal to File.dirname(File.realpath(__FILE__))

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Special constants in Ruby:
* FILE
* dir
*
* etc
* STDIN
* STDOUT
* STDERR
* stderr
* stdout
* stdin
* ENV

Table Of Contents