Future-proof init_arg => undef, that needs tests though
[gitmo/Mouse.git] / lib / Mouse / Attribute.pm
index 2c8cc5b..325c24d 100644 (file)
@@ -9,7 +9,8 @@ sub new {
     my $class = shift;
     my %args  = @_;
 
-    $args{init_arg} ||= $args{name};
+    $args{init_arg} = $args{name}
+        unless exists $args{init_arg};
     $args{is} ||= '';
 
     bless \%args, $class;