aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/ClassExporter.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reaction/ClassExporter.pm')
-rw-r--r--lib/Reaction/ClassExporter.pm40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/Reaction/ClassExporter.pm b/lib/Reaction/ClassExporter.pm
new file mode 100644
index 0000000..43f2295
--- /dev/null
+++ b/lib/Reaction/ClassExporter.pm
@@ -0,0 +1,40 @@
+package Reaction::ClassExporter;
+
+use strict;
+use warnings;
+use Reaction::Class ();
+
+sub import {
+ my $self = shift;
+ my $pkg = caller;
+ &strict::import;
+ &warnings::import;
+ {
+ no strict 'refs';
+ @{"${pkg}::ISA"} = ('Reaction::Class');
+ *{"${pkg}::import"} = \&Reaction::Class::import;
+ }
+ goto &Moose::import;
+}
+
+1;
+
+=head1 NAME
+
+Reaction::ClassExporter
+
+=head1 DESCRIPTION
+
+=head1 SEE ALSO
+
+L<Reaction::Class>
+
+=head1 AUTHORS
+
+See L<Reaction::Class> for authors.
+
+=head1 LICENSE
+
+See L<Reaction::Class> for the license.
+
+=cut