summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-03-01 22:16:06 +0100
committerfranck cuny <franck@lumberjaph.net>2010-03-01 22:16:06 +0100
commit1f801a06283ab47da96b327d625fb70b9a2f61a7 (patch)
treec4c96c7908261a158730f2ced227341a67e8e9a5
parentupdate tests (diff)
downloadmoosex-privacy-1f801a06283ab47da96b327d625fb70b9a2f61a7.tar.gz
trait for protected and private attributes
-rw-r--r--lib/MooseX/Privacy.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MooseX/Privacy.pm b/lib/MooseX/Privacy.pm
index 51485b3..97ee6ac 100644
--- a/lib/MooseX/Privacy.pm
+++ b/lib/MooseX/Privacy.pm
@@ -29,6 +29,12 @@ sub init_meta {
     );
 }
 
+package Moose::Meta::Attribute::Custom::Trait::Private;
+sub register_implementation { 'MooseX::Privacy::Trait::Private' }
+
+package Moose::Meta::Attribute::Custom::Trait::Protected;
+sub register_implementation { 'MooseX::Privacy::Trait::Protected' }
+
 1;
 __END__