irb: Interactive Ruby

If you installed Ruby, then you installed irb. To use it, just go to your command prompt, and type irb. When you’re in irb, you can type in any Ruby expression you want, and it will tell you the value of it. Type in 1+2, and it will tell you 3 (note that you don’t have to use puts). It’s kind of like a giant Ruby calculator. When you are done, type exit.

There’s a lot more to irb than this, but you can learn all about it in the PickAxe.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.76.200