I don't know what operating system you use.
If you use Linux, for example Fedora - you just need to open up terminal and use package manager to install ruby. In Fedora you would use
dnf and this command:
sudo dnf install ruby ruby-devel
Now you just need to write script in your favorite code editor (I like vim) and then in the terminal move to directory where your script is and execute command:
On Windows everything is more complicated, as always. The best choice is to use 3rd party software - RubyInstaller.
After installation create a new file with
.rb extension and put there some ruby code. Now, open
PowerShell, move (using
cd command) to the directory where your script file is saved. And run your program using command:
If you see an error saying that ruby is not recognized as an internal or external command you have to add folder with ruby binaries to the environment variable path. If this happens - post here name and version of your operating system and I will write a quick tutorial.
If there is something unclear, or you don't know how to open
terminal, just let me know and I will try to create more specific instructions.