package Enigmatic::Reflector; use DAKKAR::p 'class'; use Enigmatic::Types qw(ReflWiringMap Letter); has wiring => ( is => 'ro', isa => ReflWiringMap, coerce => 1, ); with 'Enigmatic::Role::WithWiring'; sub map { my $self = shift; my ($letter) = pos_validated_list( \@_, { isa => Letter }, ); return $self->wiring->at($letter); }