diff options
author | franck cuny <franck@lumberjaph.net> | 2010-03-01 22:16:06 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-03-01 22:16:06 +0100 |
commit | 1f801a06283ab47da96b327d625fb70b9a2f61a7 (patch) | |
tree | c4c96c7908261a158730f2ced227341a67e8e9a5 | |
parent | update tests (diff) | |
download | moosex-privacy-1f801a06283ab47da96b327d625fb70b9a2f61a7.tar.gz |
trait for protected and private attributes
-rw-r--r-- | lib/MooseX/Privacy.pm | 6 |
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__ |