projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8a68781
)
Small tweaks to example code.
Dave Rolsky [Mon, 6 Jul 2009 14:10:56 +0000 (09:10 -0500)]
lib/Moose/Manual/BestPractices.pod
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Manual/BestPractices.pod
b/lib/Moose/Manual/BestPractices.pod
index
0e79409
..
1807c1d
100644
(file)
--- a/
lib/Moose/Manual/BestPractices.pod
+++ b/
lib/Moose/Manual/BestPractices.pod
@@
-117,9
+117,9
@@
In order to declare such attributes, provide a private C<writer>
parameter:
has pizza => (
- isa => "Pizza",
- is => "ro",
- writer => "_pizza",
+ is => 'ro',
+ isa => 'Pizza',
+ writer => '_pizza',
);
=head2 Think twice before changing an attribute's type in a subclass