IRB (Interactive Ruby)
IRB stands for Interactive Ruby
Command line program for playing around with Ruby
Part of any Ruby installation
irb
Your command line will now look like this:
irb(main):001:0>
puts "Hello World!"
Your command line will now look like this:
irb(main):001:0> puts "Hello World!" Hello World! => nil irb(main):002:0>
What has happened here?
Hello World!output
=> nil
You can access the history of previous commands you entered with ↑
Go back and forth with ↑ and ↓
Try it now!
exitand Enter
quitand Enter
You are now back in your normal command line
Important: When you exit IRB, your code is gone! It's not saved anywhere!
Today, we will only use IRB
Next time, we will learn about using the text editor to write larger programs
What questions do you have?