owner()
public
Returns the class or module that defines the method.
Show source
/*
* call-seq:
* meth.owner => class_or_module
*
* Returns the class or module that defines the method.
*/
static VALUE
method_owner(obj)
VALUE obj;
{
struct METHOD *data;
Data_Get_Struct(obj, struct METHOD, data);
return data->klass;
}