From: Ronald Fischer Date: 2007-07-30T16:19:27+09:00 Subject: Re: Getting Ruby Path at runtime? > > Is it possible to find out under Windows, which Ruby has > been used to > > run a program? > require "rbconfig" > > puts File.join(Config::CONFIG["bindir"], Config::CONFIG > ["ruby_install_name"]) Great!!! May I ask where I can find a documentation about rbconfig? Maybe there is other useful stuff in it. I checked http://stdlib-doc.rubyforge.org/rdoc/index.html, but rbconfig was not mentioned. Or does the fact that rbconfig is not mentioned in the standard library page, mean, that these configuration variables (bindir, ruby_install_name) are not part of the official Ruby API? I would like to keep my programs upward compatible (to future Ruby versions), plus compatible to JRuby, as much as possible. Ronald