Ruby Interactive Tutorial

Free interactive tutorials to help you discover ruby idioms in your browser.
Ruby interactive tutorial. When you have a question about the behavior of a certain method you can invoke ri to read the brief explanation of the method. It provides course content in the form of chapters. Learnruby is an online interactive tutorial resource that offers free tutorials to learn ruby programming language. However since this is a ruby shell it will expect that you type ruby code instead of system commands.
Interactive ruby or irb is an interactive programming environment that comes with ruby. You want to learn ruby for fun for a new job or just to see what all the fuss is about. Irb rb options programfile arguments. Whether you are an experienced programmer or not this website is intended for everyone who wishes to learn the ruby programming language.
This tutorial gives a complete understanding on ruby. There is no need to download anything just click on the chapter you wish to begin from and follow the instructions. You can click on any chapter to begin with. Ruby is a scripting language designed by yukihiro matsumoto also known as matz.
Download and unzip the starter application code open up your terminal navigate to the thinklist directory a k a folder using the cd command a k a. You can get ri from ri. Change directory followed by the. To invoke it type irb at a shell or command prompt and begin entering ruby statements and expressions.
Use exit or quit to exit irb. Interactive ruby if you re using macos open up terminal and type irb then hit enter. It runs on a variety of platforms such as windows mac os and the various versions of unix. Its name is short for interactive ruby shell and yes it is another kind of shell.
Just like the shell running in your terminal irb is also a program that interactively waits for you to type something and hit enter. It was written by keiju ishitsuka. To get it set up do the following. Ri an online reference tool developed by dave thomas the famous pragmatic programmer.
If you re using linux open up a shell and type irb and hit enter. If you re using windows open interactive ruby from the ruby section of your start menu. This tutorial is suitable for both beginners and experienced programmers.