In Ruby, you have the choice to use any text editor that is more convenient for you. Ruby provides flexibility on whatever Operating System that is used and can run as a ruby program by just simply giving the filename and mentioning of extension is not required. The file extension .rb might still be needed in other programs.

We need to pass the file for processing and execution to ruby interpreter twice. Once to go for the proper syntax errors and upon receiving the success status second time to execute it. We need to give –c and –w as command line switches to get the checking status for errors and warnings if required Here –c states the checking for syntax errors and –w demonstrates the warnings messages to be sent to programmer .If the execution is done successfully we get the actual result displayed on our computer screens.