From bc0545647ec9a01768ec81c82db0fd7a2f586f95 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 29 Apr 2011 18:18:48 -0500 Subject: docs --- lib/MooseX/NonMoose.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') 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 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 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. The syntax looks like this: + + extends 'Foo' => { -constructor_name => 'create' }; + +similar to how you can already pass C<-version> in the C call in a +similar way. + =cut my ($import, $unimport, $init_meta) = Moose::Exporter->build_import_methods( -- cgit v1.2.3