Irule
Irule, the .I.ron.RU.by tc.L. .E.xtension, is a Ruby library that
provides a minimal wrapper around the Tcl programming language for
IronRuby. It mimics the load_from_file and eval methods from
its more full-featured cousin, the tcl Ruby library.
Prerequisites
- IronRuby.
- Tcl 8.5.
- Mono or .NET.
Installation
1. igem install irule, or just put tcl.rb and irule.dll
somewhere in your LOAD_PATH.
2. On Linux or Mac, you might need to add the following to the
<configuration> section of /etc/mono/config:
<dllmap dll="tcl85" target="tcl8.5"/>
Usage
Sample code:
require 'tcl' tcl = Tcl::Interp.load_from_file 'some.tcl' result = tcl.eval 'someTclCode'