Ruby Ruby FFI for Quick Prototyping A quick example of using FFI in Ruby to wrap HID API to talk to a USB HID device in Windows.
Software Science FFI: Foreign Function Interfaces for Fun & Industry An FFI wrapper is much easier to write and maintain than a C extension, more portable across platforms and languages, and easier for users to install.
Ruby Making Friends with FFI If you want your C code to play nicely with the other VMs out there, then FFI (foreign function interface) is the answer.