From: "Iñaki Baz Castillo" Date: 2011-04-20T05:32:52+09:00 Subject: Calling a custom Ruby C extension method from other C extension Hi, in my project I've created two Ruby C extensions: ext/my-exten/ ext/string/ They create my-create.so and string.so. string.so contains some custom methods I've added to class String (i.e. String#headerize). 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 extension (String_headerize). 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. -- Iñaki Baz Castillo