Ruby: Output

In Ruby, if we have to print something on the output screen we have two options:

  1. print
  2. puts

The difference between the two is that the puts (“put string”) is slightly different from print in such a way that it adds a new line in the output after what you print.

No parenthesis or semicolons are needed.