v0.29
[gitmo/MooseX-Types.git] / t / lib / IntrospectTypeExports.pm
CommitLineData
5885c4f4 1package IntrospectTypeExports;
2use strict;
3use warnings;
4
5use MooseX::Types::Util qw( has_available_type_export );
6
7my @Memory;
8
9sub import {
10 my ($class, $package, @types) = @_;
11
12 for my $type (@types) {
13 my $tc = has_available_type_export($package, $type);
14 push @Memory, [$package, $type, $tc ? $tc->name : undef];
15 }
16}
17
18sub get_memory { \@Memory }
19
201;