summaryrefslogtreecommitdiff
path: root/lib/Enigmatic/Rotor.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Enigmatic/Rotor.pm')
-rw-r--r--lib/Enigmatic/Rotor.pm12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/Enigmatic/Rotor.pm b/lib/Enigmatic/Rotor.pm
index a600b43..792c7b5 100644
--- a/lib/Enigmatic/Rotor.pm
+++ b/lib/Enigmatic/Rotor.pm
@@ -14,17 +14,7 @@ has ring_setting => (
default => 0,
);
-around BUILDARGS => sub {
- my $orig = shift;
- my $class = shift;
-
- if ( @_ == 1 && !ref $_[0] ) {
- return $class->$orig( wiring => $_[0] );
- }
- else {
- return $class->$orig(@_);
- }
-};
+with 'Enigmatic::Role::WithWiring';
sub map {
my $self = shift;