From: Stevan Little Date: Mon, 1 Oct 2007 03:36:13 +0000 (+0000) Subject: fixing the code in SYNOPSIS X-Git-Tag: 0_27~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d876e049e5ef245e050604ca7ed3deb79a39468b;p=gitmo%2FMoose.git fixing the code in SYNOPSIS --- diff --git a/lib/Moose/Cookbook/Recipe7.pod b/lib/Moose/Cookbook/Recipe7.pod index 4418a72..49a0932 100644 --- a/lib/Moose/Cookbook/Recipe7.pod +++ b/lib/Moose/Cookbook/Recipe7.pod @@ -6,7 +6,7 @@ Moose::Cookbook::Recipe7 - The augment/inner example =head1 SYNOPSIS - + package Document::Page; use Moose; @@ -24,30 +24,30 @@ Moose::Cookbook::Recipe7 - The augment/inner example $self->body($self->body . $appendage); } - sub open_page { (shift)->append_body('') } - sub open_page { (shift)->append_body('') } + sub open_page { (shift)->append_body('') } + sub close_page { (shift)->append_body('') } - package MyDocument::PageWithHeadersAndFooters; + package Document::PageWithHeadersAndFooters; use Moose; extends 'Document::Page'; - augment create => sub { + augment 'create' => sub { my $self = shift; $self->create_header; inner(); $self->create_footer; - } + }; sub create_header { (shift)->append_body('
') } sub create_footer { (shift)->append_body('