App-GHPT
view release on metacpan or search on metacpan
lib/App/GHPT/Wrapper/OurMoose.pm view on Meta::CPAN
## no critic (Moose::RequireMakeImmutable)
package App::GHPT::Wrapper::OurMoose;
use App::GHPT::Wrapper::Ourperl;
our $VERSION = '2.000001';
use Import::Into;
use Moose ();
use Moose::Exporter;
use MooseX::SemiAffordanceAccessor ();
use MooseX::StrictConstructor ();
use namespace::autoclean ();
# We do this a second time to re-establish our custom warnings
use App::GHPT::Wrapper::Ourperl;
my ($import) = Moose::Exporter->setup_import_methods(
install => [ 'unimport', 'init_meta' ],
also => ['Moose'],
);
sub import ( $class, @ ) {
my $for_class = caller();
$import->( undef, { into => $for_class } );
$class->import_extras( $for_class, 2 );
return;
}
sub import_extras ( $, $for_class, $level ) {
MooseX::SemiAffordanceAccessor->import( { into => $for_class } );
MooseX::StrictConstructor->import( { into => $for_class } );
# note that we need to use a level here rather than a classname
# so that importing autodie works
App::GHPT::Wrapper::Ourperl->import::into($level);
namespace::autoclean->import::into($level);
return;
}
1;
( run in 0.622 second using v1.01-cache-2.11-cpan-5735350b133 )