projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4e99d48
)
pass hashref to Attr->_new
Yuval Kogman [Wed, 13 Aug 2008 22:37:35 +0000 (22:37 +0000)]
lib/Class/MOP/Attribute.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP/Attribute.pm
b/lib/Class/MOP/Attribute.pm
index
7d9856c
..
a2c75d6
100644
(file)
--- a/
lib/Class/MOP/Attribute.pm
+++ b/
lib/Class/MOP/Attribute.pm
@@
-51,7
+51,7
@@
sub new {
confess("A required attribute must have either 'init_arg', 'builder', or 'default'");
}
- $class->_new(%options);
+ $class->_new(\%options);
}
sub _new {