projects
/
gitmo/Class-MOP.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
foo
[gitmo/Class-MOP.git]
/
lib
/
Class
/
MOP
/
Attribute.pm
diff --git
a/lib/Class/MOP/Attribute.pm
b/lib/Class/MOP/Attribute.pm
index
8a51a5c
..
c14eca3
100644
(file)
--- a/
lib/Class/MOP/Attribute.pm
+++ b/
lib/Class/MOP/Attribute.pm
@@
-33,6
+33,7
@@
sub new {
(defined $name && $name)
|| confess "You must provide a name for the attribute";
+
$options{init_arg} = $name
if not exists $options{init_arg};