I know it\'s possible to get the Ruby version (e.g. \"1.9.3\") via the RUBY_VERSION constant. However, I want to know how to go about determining the exact version
RUBY_VERSION
There is a RUBY_PATCHLEVEL constant as well. So you can get your version string as
RUBY_PATCHLEVEL
"#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"