Question : how to check ruby version
Answered by : codebaron
// Command line:
$ ruby -v
// Within irb type "RUBY_VERSION"
# => "2.4.1"
// If using RVM:
$ rvm current
# => ruby-2.4.1
Source : https://blog.arkency.com/which-ruby-version-am-i-using-how-to-check/ | Last Update : Tue, 11 Feb 20
Question : ruby find ruby version in code
Answered by : mysterious-mantis-2t9yeiqzzhwz
# from code
RUBY_VERSION
# => "2.4.1"
# from command line
$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
Source : https://blog.arkency.com/which-ruby-version-am-i-using-how-to-check/ | Last Update : Wed, 27 Jul 22
Question : check all ruby version ubuntu
Answered by : alive-anaconda-utdrkmsrw34z
rvm list
rvm rubies ruby-1.9.1-p431 [ i386 ]
=* ruby-1.9.2-p320 [ i386 ]
# => - current
# =* - current && default
# * - default
Source : https://docs.bitnami.com/installer/infrastructure/ruby/configuration/manage-rubies/ | Last Update : Sun, 02 Aug 20