my $self = shift;
my $meta = $self->_find_delegate_metaclass;
if ($meta->isa('Class::MOP::Class')) {
- return map { $_->{name} } # NOTE: !never! delegate &meta
- grep { $_->{class} ne 'Moose::Object' && $_->{name} ne 'meta' }
- $meta->compute_all_applicable_methods;
+ return map { $_->name } # NOTE: !never! delegate &meta
+ grep { $_->package_name ne 'Moose::Object' && $_->name ne 'meta' }
+ $meta->get_all_methods;
}
elsif ($meta->isa('Moose::Meta::Role')) {
return $meta->get_method_list;
my $add_modifier_method = 'add_' . $modifier_name . '_method_modifier';
if ( my $method_modifier_type = ref( @{$args}[0] ) ) {
if ( $method_modifier_type eq 'Regexp' ) {
- my @all_methods = $meta->compute_all_applicable_methods;
+ my @all_methods = $meta->get_all_methods;
my @matched_methods
- = grep { $_->{name} =~ @{$args}[0] } @all_methods;
- $meta->$add_modifier_method( $_->{name}, $code )
+ = grep { $_->name =~ @{$args}[0] } @all_methods;
+ $meta->$add_modifier_method( $_->name, $code )
for @matched_methods;
}
}
ok( !$p->can($_), "none of ChildD's methods ($_)" )
- for grep { /^child/ } map { $_->{name} } ChildD->meta->compute_all_applicable_methods();
+ for grep { /^child/ } map { $_->name } ChildD->meta->get_all_methods();
can_ok( $p, "child_c_method_3_la" );
can_ok( $p, "child_c_method_4_la" );