Fix has()
[gitmo/Mouse.git] / lib / Mouse / Role.pm
index 56b90b7..81208d5 100644 (file)
@@ -49,7 +49,7 @@ sub has {
         }
     }
     else{ # has foo => (...)
-        $meta->add_attribute($_ => @_);
+        $meta->add_attribute($name => @_);
     }
     return;
 }