Install ruby-ruby-version by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-ruby-version
Description:
Provide the RubyVersion pseudo-constant
Simplified checking the currently running Ruby version in your programs by providing the RubyVersion pseudo-constant. . Use this if you think DRY is important.
Homepage: https://github.com/janlelis/ruby_version
Version: 1.0.1-2
Section: universe/ruby