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?