Remove slide on sharing a ref in a default (too obscure to really be worthwhile)
[gitmo/moose-presentations.git] / moose-class / exercises / answers / 04-method-modifiers / Report.pm
CommitLineData
538499df 1package Report;
2
3use Moose;
4
5extends 'Document';
6
7has 'summary' => ( is => 'ro' );
8
9augment output => sub {
10 my $self = shift;
11
12 my $content = inner();
13
14 my $s = $self->summary;
15
16 return <<"EOF";
17$s
18
19$content
20EOF
21};
22
23no Moose;
24
25__PACKAGE__->meta->make_immutable;
26
271;