|
|
Our first program will print the classic “hello world” message. Here’s the full source code. |
|
An empty puts prints an empty line |
|
You can also use |
|
It’s shorter and gives a bit more detail about what gets printed to the standard output. Note the surrounding quotes in the output. |
|
To run the program, put the code in |
|
|
|
Now that we can run a basic Ruby program, let’s learn more about the language. |
Next example: Module Mixin.