Ruby Module for SWIG
SWIG (Simplified Wrapper and Interface
Generator) is an interface compiler that connects programs written
in C and C++ with scripting languages. This module extends SWIG to
produce wrapper code for Ruby.
This module generates extension library for Ruby from interface
files. This includes following features:
- Eliminates routine coding:
- Method arguments checking.
- Default value for omitted arguments.
- Basic type conversion between Ruby and C.
- Provides mechanism to insert customized code when automatic
conversion is not sufficient.
- C structs and C++ classes are automagically wrapped in Ruby
classes.
Documentation
Download
- Ruby module is now a part of the official SWIG release.
SWIG1.3a5 includes Ruby module. Get it from swig.sourceforge.net.
- swigruby-0.4.4.tar.gz
This is preliminary release.
This version is no more actively maintained.
- Binary Package:
- Changes:
- Changes from 0.4.3 to 0.4.4:
- Changes from 0.4.2 to 0.4.3:
- C global variables are wrapped in Ruby module attributes.
- Changes from 0.4.1 to 0.4.2:
- Changes from 0.4 to 0.4.1:
FILE * typemap is added.
include pragma is added.
- C++ class inheritance bug fixed.
- Changes from 0.3 to 0.4:
pointer.i is available to Ruby module.
typemaps.i bug fixed.
- Changes from 0.2 to 0.3:
- Classes and functions can be defined in toplevel.
- Python style special method names supported. (SWIG
cannot handle operator method names.)
- Changes from 0.1 to 0.2:
typemaps.i refined.
- some bug fix.
Projects powered by SWIG/Ruby
Copyright
Copyright (C) 1999 Network Applied Communication Laboratory, Inc.
Related Links