Using irb
irb is run with this command:
The command-line options for irb are listed in the following table. Typically, you’ll run irb with no options, but if you want to run a script and watch the step-by-step description as it runs, you can provide the name of the Ruby script and any options for that script.
Option | Description |
---|---|
--autocomplete, --noautocomplete |
Uses or doesn’t use the autocomplete feature. The default is --autocomplete. |
--back-trace-limit n |
Displays backtrace information using the top n and last n entries. The default value is 16. |
--colorize, --nocolorize |
Uses or doesn’t use color syntax highlighting. The default is --colorize. |
--context-mode ... |
Get Programming Ruby 3.3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.