If you download
and build the IronRuby source code, you are probably wondering "how do I
start using it?"
The easiest way to get started is to run the
"rbx.exe" interactive console application that by default is built
under the \bin\release directory:
Figure 1
This console shell provides you with the
ability to write Ruby code interactively. After each line, the shell will
interactively execute it.
For example, we could output hello world by
typing puts "Hello World":
Figure 2
To output this 10 times in a row, we could type the
following:
Figure 3
To use Windows Forms functionality in IronRuby, we could
type a require statement that references the System.Windows.Forms assembly, and
then use the MessageBox.Show method to display a message in a modal dialog:
Figure 4