Download the binary for Windows from the following site.
Double-click the downloaded exe file.
The installer will start, so follow the instructions to proceed with the installation and confirm that it is complete.
Launch a command prompt and enter the following command.
If it is installed successfully, Ruby version information will be displayed.
Create the following contents as a file named
puts 'Hello, world!'
After that, open a command prompt, change to the directory where you saved the file, and then execute the following command.
The script is executed and the result is displayed on the command prompt.