C wrapper
Using swig to create c++ ruby extension