./devel/p5-Role-Tiny, Roles. Like a nouvelle cuisine portion size slice of Moose

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2014Q2, Version: 1.003003nb1, Package name: p5-Role-Tiny-1.003003nb1, Maintainer: pkgsrc-users

Role::Tiny is a minimalist role composition tool.

ROLE COMPOSITION

Role composition can be thought of as much more clever and meaningful
multiple inheritance. The basics of this implementation of roles is:

* If a method is already defined on a class, that method will not be
composed in from the role.
* If a method that the role "requires" to be implemented is not
implemented, role application will fail loudly.

Unlike Class::C3, where the last class inherited from "wins," role
composition is the other way around, where the class wins. If multiple
roles are applied in a single call (single with statement), then if any
of their provided methods clash, an exception is raised unless the class
provides a method since this conflict indicates a potential problem.


Required to run:
[lang/perl5]

Required to build:
[devel/p5-Test-Simple] [devel/p5-Moose]

Master sites: (Expand)

SHA1: ea18998dfb99676cffaf8a5d51cc745d00804d1f
RMD160: 7bbc517e59f1e5e8394d0d4b0d623a9b1e30e6b9
Filesize: 27.519 KB

Version history: (Expand)