whole bunch of stuff
[gitmo/Class-MOP.git] / examples / AttributesWithHistory.pod
index 0061171..95c4688 100644 (file)
@@ -5,9 +5,7 @@ package # hide the package from PAUSE
 use strict;
 use warnings;
 
-use Class::MOP 'meta';
-
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 use base 'Class::MOP::Attribute';
 
@@ -97,7 +95,7 @@ AttributesWithHistory - An example attribute metaclass which keeps a history of
   
   sub new  {
       my $class = shift;
-      bless $class->meta->construct_instance() => $class;
+      $class->meta->new_object(@_);
   }
   
 =head1 DESCRIPTION
@@ -122,4 +120,3 @@ This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
-