dir

suggest change

__dir__ is not a constant. It is a method.

In a source file it is File.dirname(File.realpath(__FILE__)). In irb or eval, where there is no source file, __dir__ can be nil.

Feedback about page:

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



Table Of Contents