I want to return some values from function C, and IMHO is a good option. I first used rb_intern('A_KEY') to create the keys, but the extension crashed. Now I use rb_str_new2 , but I prefer characters.
How to create a new character and use it without invoking a class or method?
c ruby symbol ruby-c-extension
clbustos
source share