Helper library for implementing FFI bindings in ruby, where the target has some degree of OO design