How to view .rb file (Ruby)?

So, we just learned Ruby in the class today, and we are just starting to write our own scripts. So I wrote a very simple "Hello World" application in Ruby. I saved the file as lab7.rb. So now my question is how to view the file output? Open it in a browser? thanks

+7
source share
1 answer

You need to install ruby-interpreter on your computer.

If you are running Linux or MacOS, you probably already have it, try typing:

ruby lab7.rb 

On windows, download it here:

http://www.ruby-lang.org/en/downloads/

+14
source

All Articles