(blessed $role_meta && $role_meta->isa('Moose::Meta::Role'))
|| $self->throw_error("Unable to canonicalize the 'handles' option with $handles because its metaclass is not a Moose::Meta::Role", data => $handles);
- return map { $_ => $_ } (
+ return map { $_ => $_ }
+ grep { $_ ne 'meta' } (
$role_meta->get_method_list,
map { $_->name } $role_meta->get_required_method_list,
- );
+ );
}
}
my $role = $_;
my $aliases = $self->get_method_aliases_for_role($role);
my %excludes = map { $_ => undef } @{ $self->get_exclusions_for_role($role) };
+ $excludes{meta} = undef;
(
(map {
exists $excludes{$_} ? () :
is_deeply(
[ sort $foo_role->get_method_list() ],
- [ 'boo', 'foo' ],
+ [ 'boo', 'foo', 'meta' ],
'... got the right method list');
ok(FooRole->can('foo'), "locally defined methods are still there");