From: Damien Krotkine Date: Wed, 27 Feb 2013 15:21:29 +0000 (+0100) Subject: updated doc X-Git-Tag: v1.001000~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1c9916fa9222916e86ca1d8e67966e03bd784fe3;p=gitmo%2FMoo.git updated doc --- diff --git a/lib/Moo.pm b/lib/Moo.pm index 42da790..2e9ff7a 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -415,9 +415,15 @@ class. An error will be raised if these roles have conflicting methods. Declares an attribute for the class. - package Bar; - extends 'Foo'; # Foo has an 'attr' attribute + package Foo; + use Moo; + has 'attr' => ( + is => 'ro' + ); + package Bar; + use Moo; + extends 'Foo'; has '+attr' => ( default => sub { "blah" }, );