GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOOSEX::ROLE::PARAMETERIZED::META::ROLE::PARAMETERIZABLE (3)

.ds Aq ’

NAME

MooseX::Role::Parameterized::Meta::Role::Parameterizable - metaclass for parameterizable roles

CONTENTS

DESCRIPTION

This is 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 instead.

ATTRIBUTES

    parameterized_role_metaclass

The name of the class that will be used to construct the parameterized role.

    parameters_class

The name of the class that will be used to construct the parameters object.

    parameters_metaclass

A metaclass representing this roles’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_generator

A 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.

METHODS

add_parameter CW$name, CW%options

Delegates to add_attribute in Moose::Meta::Class on the parameters_metaclass object.

construct_parameters CW%arguments

Creates a new MooseX::Role::Parameterized::Parameters object using metaclass parameters_metaclass.

The arguments are those specified by the consumer as parameter values.

generate_role CW%arguments

This method generates and returns a new instance of parameterized_role_metaclass. It can take any combination of three named parameters:
arguments A hashref of parameters for the role, same as would be passed in at a with statement.
package A package name that, if present, we will use for the generated role; if not, we generate an anonymous role.
consumer A consumer metaobject, if available.

    apply

Overrides apply in Moose::Meta::Role to automatically generate the parameterized role.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOOSEX::ROLE::PARAMETERIZED::META::ROLE::PARAMETERIZABLE (3) 2013-09-11

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.