/* * call-seq: * method.receiver => Object * * Given a Method, returns the Object to which it is bound. */ static VALUE method_receiver(VALUE method) { struct METHOD * m; Data_Get_Struct(method, struct METHOD, m); return m->recv; }