p5-Class-Method-Modifiers - Provides Moose-like method modifiers

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Latest amd64
Package filename p5-Class-Method-Modifiers-2.13.txz
Package name p5-Class-Method-Modifiers
Package version 2.13
Package release -
Package architecture amd64
Package type txz
Category devel perl5
Homepage https://metacpan.org/release/Class-Method-Modifiers
License GPLv1+, ART10
Maintainer perl@FreeBSD.org
Download size 18.16 KB
Installed size 58.46 KB
Method modifiers are a powerful feature from the CLOS (Common Lisp Object
System) world.
In its most basic form, a method modifier is just a method that calls
$self->SUPER::foo(@_). I for one have trouble remembering that exact
invocation, so my classes seldom re-dispatch to their base classes. Very bad!
Class::Method::Modifiers provides three modifiers: before, around, and after.
before and after are run just before and after the method they modify, but can
not really affect that original method. around is run in place of the original
method, with a hook to easily call that original method.
One clear benefit of using Class::Method::Modifiers is that you can define
multiple modifiers in a single namespace. These separate modifiers don't need
to know about each other. This makes top-down design easy. Have a base class
that provides the skeleton methods of each operation, and have plugins modify
those methods to flesh out the specifics.
In short, Class::Method::Modifiers solves the problem of making sure you call
$self->SUPER::foo(@_), and provides a cleaner interface for it.
WWW: https://metacpan.org/release/Class-Method-Modifiers


Package Version Architecture Repository
p5-Class-Method-Modifiers-2.13.txz 2.13 i386 FreeBSD Ports Latest
p5-Class-Method-Modifiers-2.13.txz 2.13 i386 FreeBSD Ports Quarterly
p5-Class-Method-Modifiers-2.13.txz 2.13 amd64 FreeBSD Ports Quarterly
p5-Class-Method-Modifiers - - -


Name Value
perl5 = 5.28.2


Type URL
Mirror pkg.freebsd.org
Binary Package p5-Class-Method-Modifiers-2.13.txz
Source Package devel/p5-Class-Method-Modifiers

Install Howto

Install p5-Class-Method-Modifiers txz package:

# pkg install p5-Class-Method-Modifiers

See Also

Package Description
p5-Class-Method-Modifiers-Fast-0.041_1.txz Perl extension to provide Moose-like method modifiers
p5-Class-MethodMaker-2.24.txz Perl module for creating generic methods
p5-Class-MethodMapper-1.0_1.txz Perl module for abstract Class wrapper for AutoLoader
p5-Class-Mix-0.006.txz Perl module for dynamic class mixing
p5-Class-Mixin-1.00_1.txz API for aliasing methods to/from other classes
p5-Class-MixinFactory-0.92_1.txz Class Factory with Selection of Mixins
p5-Class-Multimethods-1.701.txz Support multimethods and function overloading in Perl
p5-Class-Multimethods-Pure-0.13_1.txz Method-ordered multimethod dispatch
p5-Class-NamedParms-1.06_1.txz Lightweight named parameter handling system
p5-Class-Null-2.110730_1.txz Perl module which implements the Null Class design pattern
p5-Class-OOorNO-0.011_1.txz Perl module that give your module classic AND OO interfaces
p5-Class-ObjectTemplate-0.7_1.txz Optimized template builder base class
p5-Class-ObjectTemplate-DB-0.27_1.txz Optimized template builder base class with lookup capability
p5-Class-Observable-1.04_1.txz Allow other classes and objects to respond to events in yours
p5-Class-ParmList-1.05_1.txz Module for processing named parameter lists for method calls