1Moose::Meta::Role::CompUosseirteC(o3n)tributed Perl DocuMmoeonstea:t:iMoenta::Role::Composite(3)
2
3
4

NAME

6       Moose::Meta::Role::Composite - An object to represent the set of roles
7

DESCRIPTION

9       A composite is a role that consists of a set of two or more roles.
10
11       The API of a composite role is almost identical to that of a regular
12       role.
13

INHERITANCE

15       "Moose::Meta::Role::Composite" is a subclass of Moose::Meta::Role.
16
17   METHODS
18       Moose::Meta::Role::Composite->new(%options)
19           This returns a new composite role object. It accepts the same
20           options as its parent class, with a few changes:
21
22           ·       roles
23
24                   This option is an array reference containing a list of
25                   Moose::Meta::Role object. This is a required option.
26
27           ·       name
28
29                   If a name is not given, one is generated from the roles
30                   provided.
31
32           ·       apply_params(\%role_params)
33
34                   Creates a new RoleSummation role application with
35                   %role_params and applies the composite role to it. The
36                   RoleSummation role application class used is determined by
37                   the composite role's "application_role_summation_class"
38                   attribute.
39
40           ·       reinitialize($metaclass)
41
42                   Like "Class::MOP::Package->reinitialize", but doesn't allow
43                   passing a string with the package name, as there is no real
44                   package for composite roles.
45

BUGS

47       See "BUGS" in Moose for details on reporting bugs.
48

AUTHOR

50       Stevan Little <stevan@iinteractive.com>
51
53       Copyright 2006-2010 by Infinity Interactive, Inc.
54
55       <http://www.iinteractive.com>
56
57       This library is free software; you can redistribute it and/or modify it
58       under the same terms as Perl itself.
59
60
61
62perl v5.12.2                      2010-08-28   Moose::Meta::Role::Composite(3)
Impressum