January 2024
Intermediate to advanced
718 pages
20h 15m
English
The most direct way to start the Ruby interpreter and run a Ruby program is by calling the ruby command from the command line. Regardless of the system in which Ruby is deployed, you have to start the Ruby interpreter somehow, and doing so gives us the opportunity to pass in command-line arguments both to Ruby itself and to the script being run.
A Ruby command-line call consists of three parts, none of which are required: options for the Ruby interpreter itself, the name of a program to run, and arguments for that program.
You only need the double-dash if you’re separating options to Ruby itself from options being passed to the program being run. The simplest Ruby command ...
Read now
Unlock full access