X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FPolicy.pm;h=7b673e6a963f8f07b51d05ef74b46b47cdde29ff;hb=dcbf286bbf29b9223dba4c070660fbf3e73f7867;hp=1ca2179d3d37fc0c8bedac69907587003e5e332a;hpb=bae6d4c347ee9329ba96744f33fc1784eb85fcc2;p=gitmo%2FMoose-Policy.git diff --git a/lib/Moose/Policy.pm b/lib/Moose/Policy.pm index 1ca2179..7b673e6 100644 --- a/lib/Moose/Policy.pm +++ b/lib/Moose/Policy.pm @@ -1,7 +1,7 @@ package Moose::Policy; use Moose 'confess', 'blessed'; -our $VERSION = '0.03'; +our $VERSION = '0.05'; our $AUTHORITY = 'cpan:STEVAN'; sub import { @@ -13,7 +13,7 @@ sub import { # otherwise require it ... eval { Class::MOP::load_class($policy) }; confess "Could not load policy module '$policy' because : $@" - if $@; + if $@; } my $package = caller(); @@ -66,6 +66,14 @@ Moose::Policy - Moose-mounted police # Foo now has (get, set)_bar methods as well as get_baz +=head1 DEPRECATION NOTICE + +B. + +L replaces the L module. The +other policies included in this distribution do not yet have standalone MooseX +modules, as of November, 2010. + =head1 DESCRIPTION This module allows you to specify your project-wide or even company-wide @@ -120,7 +128,7 @@ itself to allow Moose policies to be inherited. =head1 THE POLICY -A Policy is set by passing C a package name. This +A Policy is set by passing C a package name. This package is then queried for what metaclasses it should use. The possible metaclass values are: