X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FRole%2FComposite.pm;h=06d4d6f5a04304bbfa30cb7fb62c9b99b5c30860;hb=74397c13ad55fc865db34721aed512d4f605fadf;hp=ab39e4f4812d07eda57bf2e615712ee276f5b487;hpb=4b2189ce8dae168787b635b71a918bd64461ed7a;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Role/Composite.pm b/lib/Moose/Meta/Role/Composite.pm index ab39e4f..06d4d6f 100644 --- a/lib/Moose/Meta/Role/Composite.pm +++ b/lib/Moose/Meta/Role/Composite.pm @@ -6,7 +6,7 @@ use metaclass; use Scalar::Util 'blessed'; -our $VERSION = '0.72'; +our $VERSION = '0.75_01'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -86,19 +86,36 @@ Moose::Meta::Role::Composite - An object to represent the set of roles =head1 DESCRIPTION +A composite is a role that consists of a set of two or more roles. + +The API of a composite role is almost identical to that of a regular +role. + +=head1 INHERITANCE + +C is a subclass of L. + =head2 METHODS =over 4 -=item B +=item B<< Moose::Meta::Role::Composite->new(%options) >> -=item B +This returns a new composite role object. It accepts the same +options as its parent class, with a few changes: -=item B +=over 8 -=item B +=item * roles -=item B +This option is an array reference containing a list of +L object. This is a required option. + +=item * name + +If a name is not given, one is generated from the roles provided. + +=back =back