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); } __END__ =head1 AUTHOR Gianni Ceccarelli =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2011 by Gianni Ceccarelli. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3. =cut