Name : perl-MooseX-ClassCompositor
| |
Version : 0.010
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 18:33:28
|
Group : Unspecified
| Source RPM : perl-MooseX-ClassCompositor-0.010-lp154.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Factory That Builds Classes From Roles
|
Description :
A MooseX::ClassCompositor is a class factory. If you think using a class factory will make you feel like a filthy \"enterprise\" programmer, maybe you should turn back now.
The compositor has a \'class_for\' method that builds a class by combining a list of roles with Moose::Object, applying any supplied metaclass, and producing an arbitrary-but-human-scannable name. The metaclass is then made immutable, the operation is memoized, and the class name is returned.
In the SYNOPSIS above, you can see all the major features used: \'class_metaroles\' to enable strict constructors, \'role_prefixes\' to use String::RewritePrefix to expand role name shorthand, and \'class_basename\' to pick a namespace under which to put constructed classes.
Not shown is the \'known_classes\' method, which returns a list of pairs describing all the classes that the factory has constructed. This method can be useful for debugging and other somewhat esoteric purposes like serialization.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-M/15.4/noarch |