From: Jesse Luehrs Date: Wed, 14 Jan 2009 08:26:17 +0000 (+0000) Subject: get_method_map, find_method_by_name, and remove_method deal with Class::MOP::Method... X-Git-Tag: 0.76~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e5bc4042077c7c4828e1daffe2dfd7aa2b70e3b2;p=gitmo%2FClass-MOP.git get_method_map, find_method_by_name, and remove_method deal with Class::MOP::Method instances, not CODE refs --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index ed0b857..e3f5e6c 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1453,7 +1453,8 @@ This returns a list of subclasses for this class. =item B -Returns a HASH ref of name to CODE reference mapping for this class. +Returns a HASH ref of name to L instance mapping +for this class. =item B @@ -1519,16 +1520,17 @@ CODE reference, see L for more information. =item B -This will return a CODE reference of the specified C<$method_name>, -or return undef if that method does not exist. +This will return a L instance for the specified +C<$method_name>, or return undef if that method does not exist. Unlike C this will also look in the superclasses. =item B This will attempt to remove a given C<$method_name> from the class. -It will return the CODE reference that it has removed, and will -attempt to use B to clear the methods associated name. +It will return the L instance that it has removed, +and will attempt to use B to clear the methods associated +name. =item B