how to check ruby version
puts RUBY_VERSION
puts
is a method used in Ruby to output information to the console.RUBY_VERSION
is a built-in constant in Ruby that holds the current version of the Ruby interpreter.- By using
puts RUBY_VERSION
, the current Ruby version installed on your system will be displayed in the console when you execute this code.