Use any C library from Ruby via Fiddle – the Ruby standard library’s best kept secret
Fiddle is a little-known module that was added to Ruby’s standard library in 1.9.x. It allow you to interact directly with C libraries from Ruby. In this post we’ll start with some simple examples and finish by using termios to talk to an arduino over a serial port. - http://blog.honeybadger.io/use-any-c-library-from-ruby-via-fiddle-the-ruby-standard-librarys-best-kept-secret/
Post a comment