Path to this page:
./
devel/p5-Role-Tiny,
Roles. Like a nouvelle cuisine portion size slice of Moose
Branch: pkgsrc-2019Q3,
Version: 2.000008,
Package name: p5-Role-Tiny-2.000008,
Maintainer: pkgsrc-usersRole::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 build:[
devel/p5-Test-Fatal]
Master sites: (Expand)
SHA1: 71d61b2d03f8d2650ddc767a9e1161347b619603
RMD160: dc8b55f0b4615da7e1024f378dcf028ddea3e8de
Filesize: 27.938 KB
Version history: (Expand)
- (2019-10-02) Package added to pkgsrc.se, version p5-Role-Tiny-2.000008 (created)