6 use base 'MooseX::TypeLibrary::Wrapper';
8 sub type_export_generator {
10 my ($type, $full) = @_;
11 my $code = $class->next::method(@_);
12 return sub { $code->(@_) };
15 sub check_export_generator {
17 my ($type, $full, $undef_msg) = @_;
18 my $code = $class->next::method(@_);
20 return $code unless @_;
25 sub coercion_export_generator {
27 my ($type, $full, $undef_msg) = @_;
28 my $code = $class->next::method(@_);
30 my $val = $code->(@_);
31 die "coercion returned undef\n" unless defined $val;