12 scalar reverse $self->name;
18 use Moose -traits => [
21 reversed_name => 'enam',
28 package My::Other::Class;
29 use Moose -traits => [
32 reversed_name => 'reversed',
34 -excludes => 'reversed_name',
39 my $meta = My::Class->meta;
40 is($meta->enam, 'ssalC::yM', 'parameterized trait applied');
41 ok(!$meta->can('reversed'), "the method was not installed under the other class' alias");
43 my $other_meta = My::Other::Class->meta;
44 is($other_meta->reversed, 'ssalC::rehtO::yM', 'parameterized trait applied');
45 ok(!$other_meta->can('enam'), "the method was not installed under the other class' alias");
46 ok(!$other_meta->can('reversed_name'), "the method was not installed under the original name when that was excluded");