From: Dave Rolsky Date: Mon, 26 Jan 2009 16:01:38 +0000 (+0000) Subject: Load Moose::Exporter. X-Git-Tag: 0.66~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c36b393c4b554c10addd5b522d1026e30a019abd;p=gitmo%2FMoose.git Load Moose::Exporter. No need to capture the return value from Moose::Exporter->setup_import_methods --- diff --git a/lib/Moose/Role.pm b/lib/Moose/Role.pm index 87a3cf0..18e1ca2 100644 --- a/lib/Moose/Role.pm +++ b/lib/Moose/Role.pm @@ -17,6 +17,7 @@ our $AUTHORITY = 'cpan:STEVAN'; use Moose (); use Moose::Util (); +use Moose::Exporter; use Moose::Meta::Role; use Moose::Util::TypeConstraints; @@ -107,7 +108,7 @@ sub augment { croak "Roles cannot support 'augment'"; } -my $exporter = Moose::Exporter->setup_import_methods( +Moose::Exporter->setup_import_methods( with_caller => [ qw( with requires excludes has before after around override make_immutable ) ],