Ruby basics

In Ruby, every function returns something. So, if we write puts 'Hello, world!', the puts function will print a string and return nil (nothing). If we use p for printing, it will return the string.

To run a ruby program:

ruby name_of_file.rb