Package perl-MooseX-Role-Parameterized: Information
Source package: perl-MooseX-Role-Parameterized
Version: 1.11-alt1.1
Build time: Apr 23, 2020, 01:01 AM in the task #250480
Category: Development/Perl
Report package bugLicense: GPL or Artistic
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 for resolving role conflicts. Depending on how much of a purist you are, these options are solely for resolving 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 processing. Or what default value to use for its url attribute. Parameterized roles offer a solution to these (and other) kinds of problems.
Maintainer: Igor Vlasenko
Last changed
April 22, 2020 Igor Vlasenko 1.11-alt1.1
- dropped deprecated BR: perl-Module-Install
July 17, 2019 Igor Vlasenko 1.11-alt1
- automated CPAN update
May 9, 2017 Igor Vlasenko 1.10-alt1
- automated CPAN update