package Moose::Policy;
use Moose 'confess', 'blessed';
-our $VERSION = '0.03';
+our $VERSION = '0.05';
our $AUTHORITY = 'cpan:STEVAN';
sub import {
# otherwise require it ...
eval { Class::MOP::load_class($policy) };
confess "Could not load policy module '$policy' because : $@"
- if $@;
+ if $@;
}
my $package = caller();
# Foo now has (get, set)_bar methods as well as get_baz
+=head1 DEPRECATION NOTICE
+
+B<Moose::Policy is deprecated>.
+
+L<MooseX::FollowPBP> replaces the L<Moose::Policy::FollowPBP> 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
=head1 THE POLICY
-A Policy is set by passing C<Moose::Polocy::import()> a package name. This
+A Policy is set by passing C<Moose::Policy::import()> a package name. This
package is then queried for what metaclasses it should use. The possible
metaclass values are: