QP School
Executing Ruby in a Linux terminal - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: Ruby 3 Tutorials, exercises and examples (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=17)
+--- Thread: Executing Ruby in a Linux terminal (/showthread.php?tid=2497)



Executing Ruby in a Linux terminal - Qomplainerz - 02-27-2021

I have discovered a little inconvenience when trying to execute Ruby from the Linux terminal with a friend.
The Linux version of Ruby doesn't offer the interactive ruby shell,
so if you want to execute Ruby codes from the built in Linux terminal you have to do the following:

1. Open the terminal
2. Write some Ruby code in it
3. Save the fileĀ i.e. as example.rb
4. Open the file from the terminal