From: Graham Knop Date: Mon, 18 Mar 2013 21:11:25 +0000 (-0400) Subject: documentation for FOREIGNBUILDARGS X-Git-Tag: v1.002000~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76a0beffa670548722bf9a7e5de5a93df9168c98;p=gitmo%2FMoo.git documentation for FOREIGNBUILDARGS --- diff --git a/lib/Moo.pm b/lib/Moo.pm index 0ee8274..46d6e5a 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -362,6 +362,13 @@ passed to the constructor. This method should always return a hash reference of named options. +=head2 FOREIGNBUILDARGS + +If you are inheriting from a non-Moo class, the arguments passed to the parent +class constructor can be manipulated by defining a C method. +It will recieve the same arguments as C, and should return a list +of arguments to pass to the parent class constructor. + =head2 BUILD Define a C method on your class and the constructor will automatically