__dir__ is not a constant but a function __dir__ is equal to File.dirname(File.realpath(__FILE__))
__dir__
File.dirname(File.realpath(__FILE__))