Ruby Keyword: __FILE__ - rking/pry-docmore GitHub Wiki
The filename of the code being evaluated. Evaluates to "(pry)" within the REPL.
Useful especially for code to locate parts nearby, such as:
File.dirname(__FILE__)
Note that it is a relative path that doesn't work well with Dir.chdir changes. See: http://stackoverflow.com/questions/224379/what-does-file-mean-in-ruby/894056#894056