Answers for ".ruby-version path"

0

Finding path to some ruby versions

# Finding the path to some ruby versions

$ /usr/local/Cellar/ruby

OR

$ /usr/bin/ruby
Posted by: Guest on April-21-2021
1

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
Posted by: Guest on January-29-2021

Browse Popular Code Answers by Language