how to check ruby version
// Command line:
$ ruby -v
// Within irb type "RUBY_VERSION"
# => "2.4.1"
// If using RVM:
$ rvm current
# => ruby-2.4.1
how to check ruby version
// Command line:
$ ruby -v
// Within irb type "RUBY_VERSION"
# => "2.4.1"
// If using RVM:
$ rvm current
# => ruby-2.4.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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us