Пакет perl-MooseX-Role-Parameterized: Информация
Исходный пакет: perl-MooseX-Role-Parameterized
Версия: 1.00-alt1
Собран: 25 сентября 2012 г. 1:37
Категория: Разработка/Perl
Сообщить об ошибке в пакетеДомашняя страница: http://search.cpan.org/dist/MooseX-Role-Parameterized/
Лицензия: GPL or Artistic
О пакете: Roles with composition parameters
Описание:
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.
Сопровождающий: Igor Vlasenko
Последнее изменение
24 сентября 2012 г. Igor Vlasenko 1.00-alt1
- automated CPAN update
25 октября 2011 г. Alexey Tourbin 0.27-alt1
- initial revision