X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=examples%2FLazyClass.pod;h=0c87b3ac7090934cf83f3345042a61fe7ddd8c2f;hb=28a82ddae9835be042c809198885582ba32b9583;hp=839b609f6a9c86c6ec07b187914e203e2b7ec715;hpb=2367814a108bbb85efbf76b57fc58bf464d68455;p=gitmo%2FClass-MOP.git diff --git a/examples/LazyClass.pod b/examples/LazyClass.pod index 839b609..0c87b3a 100644 --- a/examples/LazyClass.pod +++ b/examples/LazyClass.pod @@ -38,7 +38,7 @@ our $VERSION = '0.01'; use base 'Class::MOP::Method::Accessor'; -sub generate_accessor_method { +sub _generate_accessor_method { my $attr = (shift)->associated_attribute; my $attr_name = $attr->name; @@ -59,7 +59,7 @@ sub generate_accessor_method { }; } -sub generate_reader_method { +sub _generate_reader_method { my $attr = (shift)->associated_attribute; my $attr_name = $attr->name; @@ -108,17 +108,17 @@ LazyClass - An example metaclass with lazy initialization ':instance_metaclass' => 'LazyClass::Instance', ); - BinaryTree->meta->add_attribute('$:node' => ( + BinaryTree->meta->add_attribute('node' => ( accessor => 'node', init_arg => ':node' )); - BinaryTree->meta->add_attribute('$:left' => ( + BinaryTree->meta->add_attribute('left' => ( reader => 'left', default => sub { BinaryTree->new() } )); - BinaryTree->meta->add_attribute('$:right' => ( + BinaryTree->meta->add_attribute('right' => ( reader => 'right', default => sub { BinaryTree->new() } )); @@ -153,7 +153,7 @@ Yuval Kogman Enothingmuch@woobling.comE =head1 COPYRIGHT AND LICENSE -Copyright 2006, 2007 by Infinity Interactive, Inc. +Copyright 2006-2008 by Infinity Interactive, Inc. L