# loop over all methods that are a part of the current class
# (not inherited)
- for my $method (map { $meta->get_method($_) } $meta->get_method_list) {
+ for my $method ( $meta->_get_local_methods ) {
# always ignore meta
next if $method->name eq 'meta';
# we'll deal with attributes below
return keys %{ $self->_method_map };
}
+sub _get_local_methods {
+ my $self = shift;
+ return values %{ $self->_method_map };
+}
+
sub has_method {
my ($self, $method_name) = @_;