Port details on branch 2022Q3 |
- p5-Class-Method-Modifiers Provides Moose-like method modifiers
- 2.15 devel =13 2.15Version of this port present on the latest quarterly branch.
- Maintainer: perl@FreeBSD.org
- Port Added: 2008-07-23 08:05:47
- Last Update: 2023-03-18 09:50:44
- Commit Hash: 9a6661c
- People watching this port, also watch:: curl, expat, libidn, rsync, p5-Digest-HMAC
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Class-Method-Modifiers
- Description:
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Class-Method-Modifiers>0:devel/p5-Class-Method-Modifiers
- To install the port:
- cd /usr/ports/devel/p5-Class-Method-Modifiers/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-Class-Method-Modifiers
- pkg install p5-Class-Method-Modifiers
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Class-Method-Modifiers
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1679132706
SHA256 (Class-Method-Modifiers-2.15.tar.gz) = 65cd85bfe475d066e9186f7a8cc636070985b30b0ebb1cde8681cf062c2e15fc
SIZE (Class-Method-Modifiers-2.15.tar.gz) = 41167
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Test dependencies:
-
- p5-Moose>=0 : devel/p5-Moose
- Runtime dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- databases/p5-DBIx-Class
- devel/p5-BorderStyles-Standard
- devel/p5-Dancer-Debug
- devel/p5-Data-Perl
- devel/p5-List-Objects-WithUtils
- devel/p5-Module-Build-Pluggable
- devel/p5-Moo
- for Run
-
- databases/p5-DBIx-Class
- devel/p5-BorderStyles-Standard
- devel/p5-Dancer-Debug
- devel/p5-Data-Perl
- devel/p5-List-Objects-WithUtils
- devel/p5-Module-Build-Pluggable
- devel/p5-Moo
Configuration Options:
- No options to configure
- Options name:
- devel_p5-Class-Method-Modifiers
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|