Posts Tagged Ruby Program

Starting Ruby programming

Ruby is an object-oriented scripting languages.

Here are steps to do Ruby programming:

  • Download the Ruby package here.
  • Install the package.

To start your first Ruby script, right click your desktop, and add New “Ruby Program“. Give the file .rb extension. Right click the file and click Edit. Copy this code to the file:

#!/usr/bin/env rubyputs “Hello world!”
gets # This will pause, and wait for user press enter.

, , , ,

No Comments