A front-end for the ruby interactive shell in a single ruby script.
ruby ryor.rb
give execution permissions with
chmod +x main.rb
then run the script directly with
./ryor.rb
rename the file to remove the .rb extension (optional but conventional for executables)
mv ryor.rb ryor
Move the script to a directory in your PATH, such as /usr/local/bin (you may need sudo for this)
sudo mv main /usr/local/bin/
Then you can run the script from any directory with the command
ryor