Install ruby2.5 by entering the following commands in the terminal:
sudo apt update sudo apt install ruby2.5
Description:
Interpreter of object-oriented scripting language Ruby
Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in perl). It is simple, straight-forward, and extensible. . In the name of this package, `2.5' indicates the Ruby library compatibility version. This package currently provides the `2.5.x' branch of Ruby.
Homepage: http://www.ruby-lang.org/
Version: 2.5.1-1ubuntu1
Section: ruby