How to create a private method in Ruby C?

Hi, is there any shortcut to invoke “private :method_name” in a Ruby C
extension? or must I use rb_funcall()?

Thanks a lot.

2011/2/7 Iñaki Baz C. [email protected]:

Hi, is there any shortcut to invoke “private :method_name” in a Ruby C
extension? or must I use rb_funcall()?

Ops, very easy:

rb_define_private_method( )

:slight_smile: