From: Roger Pack Date: 2010-07-28T22:11:55+09:00 Subject: Re: Which Ruby is in use? Hassan Schroeder wrote: > Is there a way to tell from within a program which executable is being > used -- which executable, not the version -- to run it? os gem: >> require 'os' >> OS.ruby_bin => "c:/installs/ruby192-rc1/bin/ruby.exe" Or require 'rubygems' Gem.ruby I believe. Or apparently ENV['_'] thanks Caleb. -r -r -- Posted via http://www.ruby-forum.com/.