Saturday, August 4, 2007

How to play with ruby langusge



How to play with ruby langusge

First how to install Ruby

Go get the One-click Installer from the website http://rubyinstaller.rubyforge.org/wiki/wiki.pl/
otherwise you can start from http://rubyinstaller.rubyforge.org/ by clicking (Download) than clicking higest-number version of ruby there version ( 1.8.6-25,1.8.5-24,1.8.5-23,as you understand but i am using for learn ruby 1.8.2-15) when you run it, it will ask you where you want to install Ruby and which parts of it you want installed.. just accept all the defaults.

After install Ruby how to start your programming



first create your project folder where you want in your computer drive.
Than go to start on your desktop/all programs/ruby/SciTE/ after than SciTE editor on your desktop now start write your ruby program first program you want to print your name.
go to SciTe editer
write there
puts 'your nam'
than press f5 on your keybord than option comes for save that time where you want to save your file. type your file name xyz.rb rb is extension for ruby files

No comments: