X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=examples%2FAttributesWithHistory.pod;h=6365e7908f31de7f281ffaceaa2b3bdf31f80327;hb=81c8a65bf02bb1b0e240d8f5b626b0ceabf9a37c;hp=5e33d0d6848d7ad45e5dc5502bc90642f99300d6;hpb=fdbdb5e6eb0e4f6c54629f0bde376aba5e69df14;p=gitmo%2FClass-MOP.git diff --git a/examples/AttributesWithHistory.pod b/examples/AttributesWithHistory.pod index 5e33d0d..6365e79 100644 --- a/examples/AttributesWithHistory.pod +++ b/examples/AttributesWithHistory.pod @@ -12,7 +12,7 @@ use base 'Class::MOP::Attribute'; # this is for an extra attribute constructor # option, which is to be able to create a # way for the class to access the history -AttributesWithHistory->meta->add_attribute('history_accessor' => ( +AttributesWithHistory->meta->add_attribute('$!history_accessor' => ( reader => 'history_accessor', init_arg => 'history_accessor', predicate => 'has_history_accessor', @@ -20,7 +20,7 @@ AttributesWithHistory->meta->add_attribute('history_accessor' => ( # this is a place to store the actual # history of the attribute -AttributesWithHistory->meta->add_attribute('_history' => ( +AttributesWithHistory->meta->add_attribute('$!_history' => ( accessor => '_history', default => sub { {} }, ));