Inspired by \"Getting the source directory of a Bash script from within\", what\'s the Ruby way to do this?
ENV["PWD"] seems the simplest way for me under Linux. I don't know of an OS-agnostic way.