Just the steps I followed to get started with learning basic Ruby. I just configured Eclipse because I already have it installed on my machine. Any normal text editor would serve the purpose as well.
- Download and install Ruby from here.
- Set the Environment Variable for Ruby.
- Go to command prompt and verify ruby is installed correctly using ‘ruby –version’ command. It should show the ruby version you installed.
- Open Eclipse. Go to Eclipse Marketplace and install NodeEclipse plugin.
- Go to Eclipse MarketPlace and install DLTK (Dynamic Languages ToolKit)
- Set Ruby Perspective for Eclipse. Go to Window > Open Perspective > Select Other and then Select Ruby
- Configuring Ruby interpreter for Eclipse
- Go to Eclipse > Window > preference.
- Select Ruby > Interpreters
- Click on Add
- Browse and add the ruby executable. It will be something like this: “C:\Ruby22-x64\bin\ruby.exe”
- Click OK
8. Create a new Ruby Project in Eclipse.