|
NAMEMooseX::Role::Parameterized::Meta::Trait::Parameterizable - trait for parameterizable rolesVERSIONversion 1.11DESCRIPTIONThis is the trait that is applied to the metaclass for parameterizable roles, roles that have their parameters currently unbound. These are the roles that you use "with" in Moose, but instead of composing the parameterizable role, we construct a new parameterized role (MooseX::Role::Parameterized::Meta::Role::Parameterized) and use that new parameterized role instead.ATTRIBUTESparameterized_role_metaclassThe name of the class that will be used to construct the parameterized role.parameters_classThe name of the class that will be used to construct the parameters object.parameters_metaclassA metaclass representing this role's parameters. It will be an anonymous subclass of "parameters_class". Each call to "parameter" in MooseX::Role::Parameters adds an attribute to this metaclass.When this role is consumed, the parameters object will be instantiated using this metaclass. role_generatorA code reference that is used to generate a role based on the parameters provided by the consumer. The user usually specifies it using the "role" in MooseX::Role::Parameterized keyword.METHODSadd_parameter $name, %optionsDelegates to "add_attribute" in Moose::Meta::Class on the "parameters_metaclass" object.construct_parameters %argumentsCreates a new MooseX::Role::Parameterized::Parameters object using metaclass "parameters_metaclass".The arguments are those specified by the consumer as parameter values. generate_role %argumentsThis method generates and returns a new instance of "parameterized_role_metaclass". It can take any combination of three named arguments:
applyOverrides "apply" in Moose::Meta::Role to automatically generate the parameterized role.SUPPORTBugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Role-Parameterized> (or bug-MooseX-Role-Parameterized@rt.cpan.org <mailto:bug-MooseX-Role-Parameterized@rt.cpan.org>).There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html>. There is also an irc channel available for users of this distribution, at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>. AUTHORShawn M Moore <code@sartak.org>COPYRIGHT AND LICENSEThis software is copyright (c) 2008 by Shawn M Moore.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |