Difference between revisions of "Ruby"

From Open Babel
Jump to: navigation, search
m
 
Line 1: Line 1:
basricel
 
 
Starting with Open Babel 2.1, an experimental Ruby interface to the Open Babel library is available.
 
Starting with Open Babel 2.1, an experimental Ruby interface to the Open Babel library is available.
  

Latest revision as of 04:12, 12 October 2007

Starting with Open Babel 2.1, an experimental Ruby interface to the Open Babel library is available.

Compilation

The Ruby interface is auto-generated, including a Makefile which uses extconf.rb.

To generate the Makefile:

% ruby extconf.rb --with-openbabel-include=/usr/local/include/openbabel-2.0
% make

Running

The Ruby interface can be run via ruby or interactive use via irb

% irb
require 'openbabel'

More Info

Rich Apodaca has blogged about the Ruby interface: