projects
/
gitmo/Moo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
fe0d87f
)
correct variable for name in _generate_populate_set
Graham Knop [Mon, 24 Jun 2013 03:32:04 +0000 (23:32 -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
0b5d422
..
0ba4075
100644
(file)
--- a/
lib/Method/Generate/Accessor.pm
+++ b/
lib/Method/Generate/Accessor.pm
@@
-458,7
+458,7
@@
sub _generate_populate_set {
if ($self->has_eager_default($name, $spec)) {
my $get_indent = ' ' x ($spec->{isa} ? 6 : 4);
my $get_default = $self->_generate_get_default(
- '$new', $_, $spec
+ '$new', $name, $spec
);
my $get_value =
defined($spec->{init_arg})