Sounds like a good idea.
Now that I think of it, there's nothing that would require C. As long as you don't need to do things like determine the symbols exported by a library (which would require poking around in the in-memory ELF data structures, on Linux at least), you should able to do everything in Ruby.