I assume a basic knowledge of Ruby, so this article can be equally useful if you are planning to write your second or third program. In the same breath, this guide won't make you the best Ruby programmer around. You are kindly requested to refer to Programming Ruby The Pragmatic Programmer's Guide for acquiring some neat Ruby skills
![]() |
![]() |
![]() |
![]() |
Let is now try to understand the project explorer window that is displayed at the Left side of the Ruby project we just created.
![]() |
The Project Explorer basically helps you keep track of your Project files - Source files and Test files.
Let us now extend our "Hello Ruby" project to add a new Class. Right Click on the "Source Files" in the project explorer and select New -> Ruby Class. Subsequently enter the new Class name, say Fruit
![]() |
The class Fruit is created with the initialize function:
class Fruit def initialize() end end
For more on initialize and other Object Oriented Features of Ruby refer this link
RubyGems is a system for managing Ruby software libraries. For a comprehensive overview of the topic consult the links:
NetBeans 6 has a comprehensive manager for Ruby Gems which allows to Install, Update, Remove Ruby Gems. Go to Tools->Ruby Gems. The window below shows the Installed Ruby Gems in a default NetBeans Installation.
![]() |
Go to Tools->Ruby Gems and select the "New Gems" TAB. Select the appropriate RubyGem and click on the Install button
![]() |
![]() |
![]() |
If anyone would like to contribute any of the above, do contact me or just do the EDIT here :)
These links will help you to explore jRuby, Ruby on Rails and extending Ruby:
Also, check out same "in-progress" documents on Ruby :
- By Amit Kumar Saha
| Screenshot-1.png | ![]() |
53223 bytes |
| Screenshot-2.png | ![]() |
39597 bytes |
| Screenshot-3.png | ![]() |
46682 bytes |
| Screenshot-4.png | ![]() |
9837 bytes |
| Screenshot-6.png | ![]() |
32994 bytes |
| gems1.png | ![]() |
15310 bytes |
| gems2.png | ![]() |
13848 bytes |
| project-explorer.png | ![]() |
7685 bytes |
| ruby-gems-1.png | ![]() |
58286 bytes |
| rubygems.png | ![]() |
80938 bytes |