[Moose-commits] r7392 - Moose/trunk/lib/Moose
autarch at code2.0beta.co.uk
autarch at code2.0beta.co.uk
Mon Jan 26 16:01:38 GMT 2009
Author: autarch
Date: 2009-01-26 08:01:38 -0800 (Mon, 26 Jan 2009)
New Revision: 7392
Modified:
Moose/trunk/lib/Moose/Role.pm
Log:
Load Moose::Exporter.
No need to capture the return value from Moose::Exporter->setup_import_methods
Modified: Moose/trunk/lib/Moose/Role.pm
===================================================================
--- Moose/trunk/lib/Moose/Role.pm 2009-01-26 14:58:28 UTC (rev 7391)
+++ Moose/trunk/lib/Moose/Role.pm 2009-01-26 16:01:38 UTC (rev 7392)
@@ -17,6 +17,7 @@
use Moose ();
use Moose::Util ();
+use Moose::Exporter;
use Moose::Meta::Role;
use Moose::Util::TypeConstraints;
@@ -107,7 +108,7 @@
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 )
],
More information about the Moose-commits
mailing list