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:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs