From: Dave Rolsky Date: Sat, 31 Jul 2010 17:15:57 +0000 (-0500) Subject: Add missing underscore X-Git-Tag: 1.10~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=22a6230f4f1676157ac3d8724b7ad75a358892ca;p=gitmo%2FMoose.git Add missing underscore --- diff --git a/lib/Moose/Cookbook/Meta/Recipe6.pod b/lib/Moose/Cookbook/Meta/Recipe6.pod index 9c1a44a..91eaac3 100644 --- a/lib/Moose/Cookbook/Meta/Recipe6.pod +++ b/lib/Moose/Cookbook/Meta/Recipe6.pod @@ -91,7 +91,7 @@ C<_add_policy_wrapper> method. You'll note that we have to explicitly set the C attribute in our constructor: - $self->{policy} = $options{policy}; + $self->{_policy} = $options{policy}; That is necessary because Moose metaclasses do not use the meta API to create objects. Most Moose classes have a custom "inlined" constructor