Need to ignore override and super in the method list
Shawn M Moore [Thu, 5 Feb 2009 16:33:25 +0000 (16:33 +0000)]
lib/Mouse/Meta/Class.pm

index 5ee9049..93b6f6c 100644 (file)
@@ -76,7 +76,7 @@ sub get_method_list {
     no strict 'refs';
     # Get all the CODE symbol table entries
     my @functions =
-      grep !/^(?:has|with|around|before|after|blessed|extends|confess)$/,
+      grep !/^(?:has|with|around|before|after|blessed|extends|confess|override|super)$/,
       grep { defined &{"${name}::$_"} }
       keys %{"${name}::"};
     push @functions, keys %{$self->{'methods'}->{$name}};