X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=examples%2FAttributesWithHistory.pod;h=e7ae1c26ac797298af47390118ead85bf72b8cfc;hb=afc92ac600289dd8a31b1c4c0a5aa946a2022f1b;hp=54fcdc4f425881fae9c5f59aeada250900801cbd;hpb=e9497117f84bf41a21275cb7a0045b6e775a902e;p=gitmo%2FClass-MOP.git diff --git a/examples/AttributesWithHistory.pod b/examples/AttributesWithHistory.pod index 54fcdc4..e7ae1c2 100644 --- a/examples/AttributesWithHistory.pod +++ b/examples/AttributesWithHistory.pod @@ -47,7 +47,7 @@ use base 'Class::MOP::Method::Accessor'; # generate the methods -sub generate_history_accessor_method { +sub _generate_history_accessor_method { my $attr_name = (shift)->associated_attribute->name; eval qq{sub { unless (ref \$_[0]->meta->get_attribute('$attr_name')->_history()->\{\$_[0]\}) \{ @@ -57,7 +57,7 @@ sub generate_history_accessor_method { }}; } -sub generate_accessor_method { +sub _generate_accessor_method { my $attr_name = (shift)->associated_attribute->name; eval qq{sub { if (scalar(\@_) == 2) { @@ -71,7 +71,7 @@ sub generate_accessor_method { }}; } -sub generate_writer_method { +sub _generate_writer_method { my $attr_name = (shift)->associated_attribute->name; eval qq{sub { unless (ref \$_[0]->meta->get_attribute('$attr_name')->_history()->\{\$_[0]\}) \{