__dir__
to get an absolute path to the current file's directory RB-ST1030#__dir__
method can replace more complex constructs to retrieve a canonicalized
absolute path to the current file.
path = File.expand_path(File.dirname(__FILE__))
path = File.dirname(File.realpath(__FILE__))
path = __dir__