projects
/
gitmo/Moo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
added BUILDARGS support
[gitmo/Moo.git]
/
lib
/
Method
/
Generate
/
Constructor.pm
diff --git
a/lib/Method/Generate/Constructor.pm
b/lib/Method/Generate/Constructor.pm
index
1d7e740
..
23d9c03
100644
(file)
--- a/
lib/Method/Generate/Constructor.pm
+++ b/
lib/Method/Generate/Constructor.pm
@@
-81,7
+81,7
@@
sub _cap_call {
sub _generate_args {
my ($self) = @_;
- q{ my $args = ref($_[0]) eq 'HASH' ? $_[0] : { @_ };}."\n";
+ q{ my $args = $class->BUILDARGS(@_);}."\n";
}
sub _assign_new {