How to find existence of method in ruby class?

Hi

We can define method in Ruby class using “rb_define_method” C API in C
application. We can also call that method using “rb_funcall2” or
“rb_funcall3” C APIs. How do I know whether method with given name is
defined or not in Ruby class? Is there any C API to find whether method
with given name is defined or not in the Ruby class?

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