X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FPolicy%2FSingleInheritence.pm;h=0236c50eaf586159b3d96d0d01bb411df69e8cda;hb=3d1dec0aeed65b0c5d61de697ee1250f22ab2a75;hp=27c4d3770c4208d2f47762395f42197f10468cef;hpb=461dc6d309a34d7c7ba4069f8dc79bbc0321cba7;p=gitmo%2FMoose-Policy.git diff --git a/lib/Moose/Policy/SingleInheritence.pm b/lib/Moose/Policy/SingleInheritence.pm index 27c4d37..0236c50 100644 --- a/lib/Moose/Policy/SingleInheritence.pm +++ b/lib/Moose/Policy/SingleInheritence.pm @@ -21,4 +21,59 @@ __END__ =pod +=head1 NAME + +Moose::Policy::SingleInheritence - Why would you ever need more than one? + +=head1 SYNOPSIS + + package Foo; + + use Moose::Policy 'Moose::Policy::SingleInheritence'; + use Moose; + + package Bar; + + use Moose::Policy 'Moose::Policy::SingleInheritence'; + use Moose; + + package Foo::Bar; + + use Moose::Policy 'Moose::Policy::SingleInheritence'; + use Moose; + + extends 'Foo', 'Bar'; # BOOM!!!! + +=head1 DEPRECATION NOTICE + +B. + +=head1 DESCRIPTION + +This module restricts Moose's C keyword so that you can only assign +a single superclass. + +This is mostly an example of how you can restrict behavior with meta-policies +in addition to extending and/or customising them. However, sometimes enforcing +a policy like this can be a good thing. + +=head1 BUGS + +All complex software has bugs lurking in it, and this module is no +exception. If you find a bug please either email me, or add the bug +to cpan-RT. + +=head1 AUTHOR + +Stevan Little Estevan@iinteractive.comE + +=head1 COPYRIGHT AND LICENSE + +Copyright 2006-2007 by Infinity Interactive, Inc. + +L + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + =cut