This section will acquaint or refresh you with basic ways to use the Ruby command line, as well as some relevant Ruby coding.
If you are comfortable programming in Ruby and understand the Ruby Enumerable Library reasonably well, you can skip this section.
The Command Line
After you install Ruby, you can fire up the interactive command line in Windows, Linux, or Mac OSX. I’m using Windows.
For brevity, I won’t write the full irb prompt every time.
You can execute Ruby statements line by line. The value returned by each expression is preceded by ⇒.