C#やVisual Basic(VB)で開発した.NETプログラムの中で、カスタム処理をプラグインの形で動的にアプリケーションに組み込んで実行したい場合に、そのプラグインをRubyスクリプト・ファイル(以降、Rubyファイル)で簡単に記述できるようにしたい場合はないだろうか? そのような場合には、IronRubyを用いることで、C#/VBプログラム内でRubyファイルを実行することが可能だ。本稿ではこの方法について説明する。 ●事前準備 まずは、Ruby関連の開発環境を整えよう。IronRubyのダウンロード・ページを訪れ、最新のIronRubyをダウンロードして、インストールもしくは.zipファイルを展開する(インストーラ版とバイナリ版が用意されているが、本稿の内容であればバイナリ版でよい。今回は「IronRuby 1.1.3 Binaries」をダウンロードして「C:\Projects