Hi, in my project I’ve created two Ruby C extensions:
They create my-create.so and string.so.
string.so contains some custom methods I’ve added to class String
my-exten.so creates its own class and internally it needs to use the
String#headerize method by directly calling the C method in the string
So I suposse I must create a ext/string/string.h file declaring the C
function String_headerize, and use #include “…/string/string.h”
within my-exten.c. This should work but, is there any other approach?
(note: I don’t want to invoke a Ruby method from C code).
Thanks a lot.