Skip to content

Commit

Permalink
Merge 1bb93ef into a89351a
Browse files Browse the repository at this point in the history
  • Loading branch information
choroba committed Apr 25, 2018
2 parents a89351a + 1bb93ef commit 5cc8a7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Moose/Manual/Construction.pod
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ do something with parameters that do not represent object attributes.
The interaction between multiple C<BUILD> methods in an inheritance hierarchy
is different from normal Perl methods. B<You should never call C<<
$self->SUPER::BUILD >>>, nor should you ever apply a method modifier to
C<BUILD>.
C<BUILD>. Roles are an exception to this rule, though: it's completely
acceptable to apply a method modifier to C<BUILD> in a role; you can
even provide an empty C<BUILD> subroutine in a role so the role is applicable
even to classes without their own C<BUILD>.

Moose arranges to have all of the C<BUILD> methods in a hierarchy
called when an object is constructed, I<from parents to
Expand Down

0 comments on commit 5cc8a7a

Please sign in to comment.