projects
/
gitmo/Moo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2fa823d
)
fix for eager false non-ref defaults
Graham Knop [Fri, 22 Mar 2013 23:06:43 +0000 (19:06 -0400)]
lib/Method/Generate/Accessor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Method/Generate/Accessor.pm
b/lib/Method/Generate/Accessor.pm
index
2aad0e1
..
dc041ec
100644
(file)
--- a/
lib/Method/Generate/Accessor.pm
+++ b/
lib/Method/Generate/Accessor.pm
@@
-221,7
+221,7
@@
sub is_simple_set {
sub has_eager_default {
my ($self, $name, $spec) = @_;
- (!$spec->{lazy} and ($spec->{default} or $spec->{builder}));
+ (!$spec->{lazy} and (exists $spec->{default} or $spec->{builder}));
}
sub _generate_get {