.ruby-version file example
Example: ruby version from script
There is a RUBY_PATCHLEVEL constant as well. So you can get your version string as
p "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
--iltempo
There is a RUBY_PATCHLEVEL constant as well. So you can get your version string as
p "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
--iltempo