Ruby is probably most famous for its use in web development, it has many other uses, too. Some of these include automation, command-line tools, static site generation, DevOps, web scraping, and data processing.
These examples are made in Ruby 2.5.1. It is recommended to install this exactly version for a correct running.