overriding new isn't necessary when using mx-nonmoose
Jesse Luehrs [Sat, 7 May 2011 18:03:13 +0000 (13:03 -0500)]
lib/Moose/Cookbook/Basics/Recipe11.pod

index 6fcd3b1..e64902e 100644 (file)
@@ -35,17 +35,6 @@ use Test::Requires {
       predicate => 'has_mayan_date',
   );
 
-  sub new {
-      my $class = shift;
-
-      my $obj = $class->SUPER::new(@_);
-
-      return $class->meta->new_object(
-          __INSTANCE__ => $obj,
-          @_,
-      );
-  }
-
   after 'set' => sub {
       $_[0]->_clear_mayan_date;
   };