projects
/
gitmo/moose-presentations.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Make tests match the order of the instructions for test 03
[gitmo/moose-presentations.git]
/
moose-class
/
exercises
/
answers
/
03-basic-attributes
/
Person.pm
diff --git
a/moose-class/exercises/answers/03-basic-attributes/Person.pm
b/moose-class/exercises/answers/03-basic-attributes/Person.pm
index
3a42949
..
c94f30c
100644
(file)
--- a/
moose-class/exercises/answers/03-basic-attributes/Person.pm
+++ b/
moose-class/exercises/answers/03-basic-attributes/Person.pm
@@
-10,9
+10,15
@@
has title => (
clearer => 'clear_title',
);
-has first_name => ( is => 'rw' );
+has first_name => (
+ is => 'rw',
+ required => 1,
+);
-has last_name => ( is => 'rw' );
+has last_name => (
+ is => 'rw',
+ required => 1,
+);
sub BUILDARGS {
my $class = shift;