VOOZH about

URL: https://apidock.com/ruby/Method/owner

⇱ Method#owner - APIdock


method

owner

ruby latest stable - Class: Method
owner()
public

Returns the class or module that defines the method.

static VALUE
method_owner(VALUE obj)
{
 struct METHOD *data;
 TypedData_Get_Struct(obj, struct METHOD, &method_data_type, data);
 return data->me->owner;
}