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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents