Name : perl-MooseX-Role-Parameterized
| |
Version : 0.14
| Vendor : Dag Apt Repository, http://dag_wieers_com/apt/
|
Release : 1.el5.rf
| Date : 2010-01-05 01:07:46
|
Group : Applications/CPAN
| Source RPM : perl-MooseX-Role-Parameterized-0.14-1.el5.rf.src.rpm
|
Size : 0.04 MB
| |
Packager : Dag Wieers < dag_wieers_com>
| |
Summary : Roles with composition parameters
|
Description :
Roles are composable units of behavior. They are useful for factoring out functionality common to many classes from any part of your class hierarchy. See Moose::Cookbook::Roles::Recipe1 for an introduction to Moose::Role.
While combining roles affords you a great deal of flexibility, individual roles have very little in the way of configurability. Core Moose provides alias for renaming methods and excludes for ignoring methods. These options are primarily (perhaps solely) for disambiguating role conflicts. See Moose::Cookbook::Roles::Recipe2 for more about alias and excludes.
Because roles serve many different masters, they usually provide only the least common denominator of functionality. To empower roles further, more configurability than alias and excludes is required. Perhaps your role needs to know which method to call when it is done. Or what default value to use for its url attribute.
Parameterized roles offer exactly this solution.
|
RPM found in directory: /vol/rzm3/linux-dag/dag/redhat/el5/en/x86_64/dag/RPMS |