projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
adding the applied_traits method to attr
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
Attribute.pm
diff --git
a/lib/Moose/Meta/Attribute.pm
b/lib/Moose/Meta/Attribute.pm
index
6ec176d
..
28b2488
100644
(file)
--- a/
lib/Moose/Meta/Attribute.pm
+++ b/
lib/Moose/Meta/Attribute.pm
@@
-46,6
+46,10
@@
__PACKAGE__->meta->add_attribute('documentation' => (
reader => 'documentation',
predicate => 'has_documentation',
));
+__PACKAGE__->meta->add_attribute('traits' => (
+ reader => 'applied_traits',
+ predicate => 'has_applied_traits',
+));
# NOTE:
# we need to have a ->does method in here to