From: Ryan Davis Date: 2010-09-09T06:07:59+09:00 Subject: Re: Portable method of launching another Ruby interpreter On Sep 8, 2010, at 10:56 , Tony Arcieri wrote: > 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 interpreter > being used by the current environment. At the very least I'd like for this > 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 what I > can tell this doesn't work on JRuby. > > Are there any portable solutions to this problem? I always use Gem.ruby I'm not sure if the jruby team has patched that to work for jars or not (or if it even needs patching for that matter--I don't use jruby, sorry).