Name : perl-MooseX-Role-Parameterized
| |
Version : 0.180.0
| Vendor : Mandriva
|
Release : 1mdv2010.1
| Date : 2010-03-11 17:51:20
|
Group : Development/Perl
| Source RPM : perl-MooseX-Role-Parameterized-0.180.0-1mdv2010.1.src.rpm
|
Size : 0.04 MB
| |
Packager : Jérôme Quelin < jquelin_mandriva_org>
| |
Summary : Metaclass for parameterizable roles
|
Description :
Your parameterized role consists of two new things: parameter declarations and a \'role\' block.
Parameters are declared using the the /parameter manpage keyword which very much resembles the Moose/has manpage. You can use any option that the Moose/has manpage accepts. The default value for the \'is\' option is \'ro\' as that\'s a very common case. Use \'is => \'bare\'\' if you want no accessor. These parameters will get their values when the consuming class (or role) uses the Moose/with manpage. A parameter object will be constructed with these values, and passed to the \'role\' block.
The \'role\' block then uses the usual the Moose::Role manpage keywords to build up a role. You can shift off the parameter object to inspect what the consuming class provided as parameters. You use the parameters to customize your role however you wish.
|
RPM found in directory: /vol/rzm6/linux-mandriva/official/2010.1/i586/media/contrib/release |