Please follow the steps below.
Install ruby
Install eclipse (Ex: Eclipse Juno)
Now, install Dynamic Languages Toolkit (DLTK)
- In Eclipse go to Help -> Install New Software
- Click on Add button
- Enter Name as DLTK
- Enter Location as http://download.eclipse.org/technology/dltk/updates/
- Click ok
Select the version and click on Next button
Complete the installation
Enabling Ruby Perspective:
In Eclipse go to Window -> Open Perspective
Select Others..
Select Ruby and click on Ok button
Note: You can save this perspective from Window -> Save Perspective As..
Adding Ruby Interpreter in Eclipse:
In Eclipse goto Window -> Preferences
Select Ruby -> Interpreters
Click on Search button
Select exe and click on Ok button
Hello World:
When above all setup is done correctly you should see Ruby Project in File -> New
Create a new Ruby Project
Add a new class file
Enter puts "Hello World!!"
Click on Ruby Script
You should be able to see Hello World in the console
Happy Ruby learning!!!