How to create a private method in Ruby C?

  • Thread starter Iñaki Baz Castillo
  • Start date
I

Iñaki Baz Castillo

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

Thanks a lot.

--=20
I=C3=B1aki Baz Castillo
<[email protected]>
 
I

Iñaki Baz Castillo

2011/2/7 I=C3=B1aki Baz Castillo said:
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( )

:)


--=20
I=C3=B1aki Baz Castillo
<[email protected]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,038
Members
48,768
Latest member
first4landlord

Latest Threads

Top