Make MMMC->initialize_body private (there is a public version in the
Dave Rolsky [Fri, 27 Mar 2009 01:27:21 +0000 (20:27 -0500)]
parent class that will warn if called)

lib/Moose/Meta/Method/Constructor.pm

index 0a6dd36..ed7ec3b 100644 (file)
@@ -42,7 +42,7 @@ sub new {
     # needed
     weaken($self->{'associated_metaclass'});
 
-    $self->initialize_body;
+    $self->_initialize_body;
 
     return $self;
 }
@@ -133,7 +133,7 @@ sub _generate_slot_initializers {
     } 0 .. (@{$self->attributes} - 1)) . ";\n";
 }
 
-sub initialize_body {
+sub _initialize_body {
     my $self = shift;
     # TODO:
     # the %options should also include a both