3 MODULE = Class::MOP::Method PACKAGE = Class::MOP::Method
13 if ( ! SvROK(self) ) {
14 die("Cannot call name as a class method");
17 if ( (he = hv_fetch_ent((HV *)SvRV(self), KEY_FOR(name), 0, HASH_FOR(name))) )
28 if ( ! SvROK(self) ) {
29 die("Cannot call package_name as a class method");
32 if ( (he = hv_fetch_ent((HV *)SvRV(self), KEY_FOR(package_name), 0, HASH_FOR(package_name))) )
43 if ( ! SvROK(self) ) {
44 die("Cannot call body as a class method");
47 if ( (he = hv_fetch_ent((HV *)SvRV(self), KEY_FOR(body), 0, HASH_FOR(body))) )