| |||||||
Introduction (2004-10-04) |
Ruby is a scripting language that allows the rapid creation of programs to manipulate text, interact
with the user and perform operations over the Internet. It offers several advantages over other scripting languages,
specifically perl, in that it results in programs that are easier to read and understand, and has a cleaner
object model. This tutorial is intended to provide basic directions on how to get the Ruby interpreter running on a Windows based platform, and is not intended to cover the use or creation of Ruby programs themselves. For more information on Ruby, please see the references at the bottom of this tutorial. | ||||||
Installation |
Installing the Ruby software adds a series of programs to your computer that allows it to understand the ruby language.
Despite that I have never heard of any problems resulting from installing Ruby, like any other software package, there
is a possibility that it may cause problems. Thus, before proceeding, you must agree that you are installing this software
at your own risk.
To install Ruby, perform the following steps:
| ||||||
Your First Ruby Program |
Once Ruby is installed, you can test to ensure that it is operating correctly by
going to a command shell and typing the
following:
![]() Figure 2 - Testing the Ruby Interpreter Note that ^D represents Control-D, and you must hit return after typing it. This tells the ruby interpreter that you have finished typing in instructions to it. If the program runs as displayed above, Ruby is now working on your computer. | ||||||
Using Scripts from this Site |
In order to use the various scripts provided on this site, perform the following steps:
| ||||||
Resources |
The official Ruby site: http://www.ruby-lang.org/ The Ruby Windows Installer: http://rubyforge.org/frs/?group_id=167 | ||||||
Last Updated on: 2004-10-04 |