package Enigmatic::ReflectorBox; use DAKKAR::p 'class'; use Enigmatic::Reflector; use Enigmatic::Types 'ReflectorT'; use MooseX::Types::Structured qw(Map); use MooseX::Types::Moose qw(Str); use Moose::Util::TypeConstraints; has reflectorset => ( is => 'ro', isa => Map[Str,ReflectorT], lazy_build => 1, traits => ['Hash'], handles => { get => 'get', }, ); sub _build_reflectorset { my %reflectors = ( B => 'YRUHQSLDPXNGOKMIEBFZCWVJAT', C => 'FVPJIAOYEDRZXWGCTKUQSBNMHL', 'B_thin' => 'ENKQAUYWJICOPBLMDXZVFTHRGS', 'C_thin' => 'RDOBJNTKVEHMLFCWZAXGYIPSUQ', ); $_ = Enigmatic::Reflector->new($_) for values %reflectors; return \%reflectors; } __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