1 / 18

Install Ruby

Install Ruby. If you are running on Mac OS X, Ruby is preinstalled. If you are on Windows or Linux, browse to http://www.ruby-lang.org/en/downloads/. Scroll to the Options for Your OS. I suggest the one-click installer. Adding Ruby Support to Eclipse.

corin
Download Presentation

Install Ruby

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Install Ruby • If you are running on Mac OS X, Ruby is preinstalled. • If you are on Windows or Linux, browse to http://www.ruby-lang.org/en/downloads/

  2. Scroll to the Options for Your OS • I suggest the one-click installer.

  3. Adding Ruby Support to Eclipse • There is a Ruby plugin for Eclipse, just like there is a Java plugin. • Once you install the plugin, you can write and debug Ruby code like you write and debug Java code. • A good description of the process is at http://alliance.seas.upenn.edu/~matuszek/wiki/wiki700/index.php?n=Main.RDT • We will follow the steps given there.

  4. Go to www.rubypeople.org

  5. Visit the Download Section

  6. Follow Instructions for Eclipse Update Mgr.

  7. Go to Help > Software Update > Find & Install

  8. Choose “Search for new features to install”

  9. Click “New remote site”

  10. Select Update Site • Put an appropriate name into the “Name” box. • (You will see this name later on your list of Update sites to visit). • I recommend using the release builds (the …/release URL). • Then click “OK”.

  11. Add the Update Site • Check the box next to “Ruby Development Tools” (or whatever name you chose), and click Finish.

  12. Select Ruby Development Tools. • Click “Next”. • Follow the remaining instructions.

  13. Complete Installation • I recommend installing this feature even though it has not been digitally signed. • Installation will complete, and you will be prompted to restart Eclipse.

  14. Select a Workspace • You will be prompted to select a workspace (or create a new one). • You might want to create a workspace called “Ruby”.

  15. Create a New Ruby Project • Right-click in the Package Explorer window, then expand “Ruby” • Click on “Ruby Project”. • Then click “Next”.

  16. Name Your Project • Type in a name. • Then click on “Finish”.

  17. Now you can create a new Ruby class just like you did for Java.

  18. Creating a Class • Then copy in the code from the previous lecture.

More Related