If I get you right, you have two versions of a sprite, a C++ and a Ruby version. Why else would the Ruby version need a reference to the C++ version?
Also you shouldn't use void pointers. Program properly, it will prevent bugs. C++ is a typesafe language, make use of it.