5 NEEDS_KEY(package_name);
7 MODULE = Class::MOP::Method PACKAGE = Class::MOP::Method
17 if ( ! SvROK(self) ) {
18 die("Cannot call name as a class method");
21 if ( (he = hv_fetch_ent((HV *)SvRV(self), key_name, 0, hash_name)) )
32 if ( ! SvROK(self) ) {
33 die("Cannot call package_name as a class method");
36 if ( (he = hv_fetch_ent((HV *)SvRV(self), key_package_name, 0, hash_package_name)) )
47 if ( ! SvROK(self) ) {
48 die("Cannot call body as a class method");
51 if ( (he = hv_fetch_ent((HV *)SvRV(self), key_body, 0, hash_body)) )