owner()
public
Returns the class or module that defines the method. See also receiver.
(1..3).method(:map).owner
Show source
static VALUE
method_owner(VALUE obj)
{
struct METHOD *data;
TypedData_Get_Struct(obj, struct METHOD, &method_data_type, data);
return data->me->owner;
}