Project

irule

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Provides an tiny subset of the tcl gem for IronRuby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

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

  1. IronRuby.
  2. Tcl 8.5.
  3. 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'