From: "Joseph E. Savard" Date: 2010-07-28T06:24:29+09:00 Subject: Re: Which Ruby is in use? In 1.9: RUBY_COPYRIGHT RUBY_DESCRIPTION String Version number 1.9 & interpreter arch. RUBY_ENGINE String The name of the Ruby interpreter RUBY_PATCHLEVEL RUBY_PLATFORM Results in irb: ruby-1.9.2-head > RUBY_COPYRIGHT => "ruby - Copyright (C) 1993-2010 Yukihiro Matsumoto" ruby-1.9.2-head > RUBY_DESCRIPTION => "ruby 1.9.2dev (2010-07-14 revision 28640) [i386-darwin9.8.0]" ruby-1.9.2-head > RUBY_ENGINE => "ruby" ruby-1.9.2-head > RUBY_PATCHLEVEL => -1 ruby-1.9.2-head > RUBY_PLATFORM => "i386-darwin9.8.0" ruby-1.9.2-head > Lots of ways to skin the cat. > From: Hassan Schroeder > Reply-To: > Date: Wed, 28 Jul 2010 05:26:42 +0900 > To: ruby-talk ML > Subject: Which Ruby is in use? > > Is there a way to tell from within a program which executable is being > used -- which executable, not the version -- to run it? > > Seems like there should be, but I'm striking out... > > TIA, > -- > Hassan Schroeder ------------------------ hassan.schroeder@gmail.com > twitter: @hassan > RUBY_COPYRIGHT RUBY_DESCRIPTION RUBY_ENGINE String RUBY_PATCHLEVEL RUBY_PLATFORM