projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Some fixes and test improvements for roles
[gitmo/Mouse.git]
/
lib
/
Mouse
/
Role.pm
diff --git
a/lib/Mouse/Role.pm
b/lib/Mouse/Role.pm
index
0375d0c
..
10621cc
100644
(file)
--- a/
lib/Mouse/Role.pm
+++ b/
lib/Mouse/Role.pm
@@
-35,9
+35,9
@@
do {
my $caller = $CALLER;
return sub {
my $name = shift;
- my @opts = @_;
+ my %opts = @_;
- $caller->meta->add_attribute($name => \@opts);
+ $caller->meta->add_attribute($name => \%opts);
}
},
with => sub {