diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-05-06 17:36:33 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-05-06 17:36:33 -0500 |
commit | a2f4b842a0cd91625e3359e5b9e54a5b372d7ffa (patch) | |
tree | cb7b150929239b18030b8e08ed14c6f2e8d0dac6 | |
parent | a1c254ace25c195253fe642cc26b12f7945dbb8c (diff) | |
download | moosex-nonmoose-a2f4b842a0cd91625e3359e5b9e54a5b372d7ffa.tar.gz moosex-nonmoose-a2f4b842a0cd91625e3359e5b9e54a5b372d7ffa.zip |
clean up the FOREIGNBUILDARGS documentation
-rw-r--r-- | lib/MooseX/NonMoose.pm | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/lib/MooseX/NonMoose.pm b/lib/MooseX/NonMoose.pm index 4bea095..c36d3ca 100644 --- a/lib/MooseX/NonMoose.pm +++ b/lib/MooseX/NonMoose.pm @@ -59,19 +59,12 @@ about inlining, this is all you need to worry about. Applying L<MooseX::NonMoose::Meta::Role::Constructor> as well will provide an inlined constructor when you immutabilize your class. -MooseX::NonMoose provides a way to manipulate the argument list that gets -passed to the superclass constructor: FOREIGNBUILDARGS. This supports setting -attributes in the constructor for a subclass of a class whose constructor does -strict argument checking. - - sub FOREIGNBUILDARGS { - my $class = shift; - my %args = @_; - - # Returns a list that is appropriate for what you would - # use for arguments in the superclass constructor. - return massage_for_baseclass_args(%args); - } +C<MooseX::NonMoose> allows you to manipulate the argument list that gets passed +to the superclass constructor by defining a C<FOREIGNBUILDARGS> method. This is +called with the same argument list as the C<BUILDARGS> method, but should +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.) =cut |