DevHeads.net

Postings by Hassan Schroeder

which Ruby is in use?

How can I tell from within a running program which interpreter is being
used -- i.e. MRI, REE, etc.?

RUBY_VERSION only returns a number, .e.g. "1.8.7".

TIA,

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,