summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-04-29 18:18:48 -0500
committerJesse Luehrs <doy@tozt.net>2011-04-29 18:18:48 -0500
commitbc0545647ec9a01768ec81c82db0fd7a2f586f95 (patch)
treef69f6da1afa0b11198bf9d9f1f49f0bd02133f05 /lib
parent05e834f8a1ad6d9a31b9dcfc415546d650bc405c (diff)
downloadmoosex-nonmoose-bc0545647ec9a01768ec81c82db0fd7a2f586f95.tar.gz
moosex-nonmoose-bc0545647ec9a01768ec81c82db0fd7a2f586f95.zip
docs0.21
Diffstat (limited to 'lib')
-rw-r--r--lib/MooseX/NonMoose.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/MooseX/NonMoose.pm b/lib/MooseX/NonMoose.pm
index 1bd29ee..f22bf1c 100644
--- a/lib/MooseX/NonMoose.pm
+++ b/lib/MooseX/NonMoose.pm
@@ -62,6 +62,15 @@ return a list of arguments to pass to the superclass constructor. This allows
C<MooseX::NonMoose> to support superclasses whose constructors would get
confused by the extra arguments that Moose requires (for attributes, etc.)
+Not all non-Moose classes use C<new> as the name of their constructor. This
+module allows you to extend these classes by explicitly stating which method is
+the constructor, during the call to C<extends>. The syntax looks like this:
+
+ extends 'Foo' => { -constructor_name => 'create' };
+
+similar to how you can already pass C<-version> in the C<extends> call in a
+similar way.
+
=cut
my ($import, $unimport, $init_meta) = Moose::Exporter->build_import_methods(