January 2024
Intermediate to advanced
718 pages
20h 15m
English
Now that Ruby is installed, you’d probably like to run some programs. Unlike compiled languages, you have two ways to run Ruby: you can type in code interactively, or you can create program files and run them. Typing in code interactively is a great way to experiment with the language, but for code that’s more complex or code that you’ll want to run more than once, you’ll need to create program files and run them. But, before we go any further, let’s test to see whether Ruby is installed. Bring up a fresh command prompt, and type this:
| | $ ruby --version |
| | ruby 3.3.0dev (2023-11-01T17:47:26Z master 909afcb4fc) [arm64-darwin23] |
Technically, you can run Ruby interactively by typing ruby at the shell prompt. You’ll get a blank ...
Read now
Unlock full access