-alias => {
stop => '_stop',
start => '_start'
- }
+ },
+ -excludes => [ 'stop', 'start' ],
};
sub stop {
C<Restartable> to private methods, and provide wrappers around the
originals (1).
+Note that aliasing simply I<adds> a name, so we also need to exclude the
+methods with their original names.
+
with 'Restartable' => {
-alias => {
stop => '_stop',
start => '_start'
- }
+ },
+ -excludes => [ 'stop', 'start' ],
};
In the C<Restartable::ButBroken> role, we want to provide an entirely