Ruby In Steel Archives

Back to -Ruby In Steel Archives

Two Minute Guide To Steel

Learn how to create a first Ruby In Steel Project

First download and install Steel

Create A New Steel Project

You can start a new Steel project just as you would start any other Visual Studio project: Select File, New, Project...

When the New Project dialog appears (shown above), select the Steel branch in the left-hand pane. Steel supports Ruby and Rails projects - and more alternatives may be available in later releases of Steel. For now, select the Ruby project type in the right hand window. Give the project a name by filling out the Name: field at the bottom of the dialog and, if you wish, click the Browse button to select a directory. Then click OK.

Add A New Item

Here I’ve create a project named TestProject. Before you can start programming you need to add a barebones Ruby program to the Project. In the Solution Explorer right-click the Project branch (not the Solution itself) and select Add, then New Item...

Note: if you want to load an existing ruby program file from disk, select Add, Existing Item...

Select An Item Template

In the Add New Item dialog, select an item type and give it a name in the field at the bottom of the dialog. The items set up some very basic syntax for a Ruby module or class. Alternatively you can start with an empty file. Then click Add.

Start Coding

Now start writing your program. Note that Steel has Ruby syntax-sensitive features including automatic code colouring and code collapsing.

Fix Errors

To run the program , press CTRL+F5 or click the Green ‘Run’ arrow in the Visual Studio toolbar. Syntax error messages will be shown in the Visual Studio Error List panel or (as seen here) in the console. Click the error message to locate the problem code in the editor.

Run Inside the Integrated Console

When any syntax errors are fixed, press CTRL+F5 again and your program will run inside the interactive console window, seen here docked beneath the code editor.

Bookmark and Share   Keywords:  ide
© SapphireSteel Software 2014