Doesn't Ruby have a C-interface?  Wouldn't the first step be to wrap the 
existing C interface in a Ruby package then  idiom-ize it?

-- 
Visit<http://it.toolbox.com/blogs/anything-worth-doing/>
for more great reading.