projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Stub 'has_attribute' and make 'has' use 'add_attribute'
[gitmo/Mouse.git]
/
lib
/
Mouse
/
Meta
/
Role.pm
diff --git
a/lib/Mouse/Meta/Role.pm
b/lib/Mouse/Meta/Role.pm
index
936f172
..
927945a
100644
(file)
--- a/
lib/Mouse/Meta/Role.pm
+++ b/
lib/Mouse/Meta/Role.pm
@@
-30,5
+30,13
@@
sub new {
bless \%args, $class;
}
+sub name { $_[0]->{name} }
+
+sub has_attribute { }
+
+sub add_attribute {
+ $_[0]->{attributes}->{$_[1]} = $_[2];
+}
+
1;