Interactive Ruby Shell (IRB)

Learn about the Interactive Ruby Shell.

We'll cover the following

Interactive Ruby Shell

Interactive Ruby Shell (IRB) is a tool that allows the execution of Ruby commands with immediate response, which can be very helpful for learning Ruby syntax and debugging code errors. IRB comes with Ruby and can be launched from a command line. To run IRB, just run irb from a command line window and then try ruby code there.

In the screenshot above, the commands in the red boxes are what we entered. The rest are the responses of those commands.