switching over to dzil
[gitmo/MooseX-Types.git] / lib / MooseX / Types / Wrapper.pm
index 86d0373..388a535 100644 (file)
@@ -1,13 +1,10 @@
-=head1 NAME
-
-MooseX::Types::Wrapper - Wrap exports from a library
+package MooseX::Types::Wrapper;
 
-=cut
+#ABSTRACT: Wrap exports from a library
 
-package MooseX::Types::Wrapper;
 use Moose;
 
-use Carp    qw( croak );
+use Carp::Clan      qw( ^MooseX::Types );
 use Class::MOP;
 
 use namespace::clean -except => [qw( meta )];
@@ -37,10 +34,10 @@ sub import {
           = ($l eq 'Moose' ? 'MooseX::Types::Moose' : $l );
         Class::MOP::load_class($library_class);
 
-        $library_class->import( @{ $libraries{ $l } }, { 
+        $library_class->import({ 
             -into    => scalar(caller),
             -wrapper => $class,
-        });
+        }, @{ $libraries{ $l } });
     }
     return 1;
 }
@@ -51,11 +48,6 @@ sub import {
 
 L<MooseX::Types>
 
-=head1 AUTHOR AND COPYRIGHT
-
-Robert 'phaylon' Sedlacek C<E<lt>rs@474.atE<gt>>, with many thanks to
-the C<#moose> cabal on C<irc.perl.org>.
-
 =head1 LICENSE
 
 This program is free software; you can redistribute it and/or modify