I’m working on a project that requires a “clean”, newly launched Ruby
interpreter to perform a little magic.
I’m looking for a portable way to determine the path to the Ruby
being used by the current environment. At the very least I’d like for
to work across Ruby 1.8.7, Ruby 1.9.2, JRuby, and Rubinius.
I’ve seen people suggest using Config::CONFIG for this, however from
can tell this doesn’t work on JRuby.
Are there any portable solutions to this problem?