perl-Class-Method-Modifiers-2.12-3.1.noarch.rpm


Advertisement

Description

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

Property Value
Distribution openSUSE Leap 42.3
Repository openSUSE Oss all
Package filename perl-Class-Method-Modifiers-2.12-3.1.noarch.rpm
Package name perl-Class-Method-Modifiers
Package version 2.12
Package release 3.1
Package architecture noarch
Package type rpm
Category Development/Libraries/Perl
Homepage -
License Artistic-1.0 or GPL-1.0+
Maintainer -
Download size 28.11 KB
Installed size 48.33 KB
Method modifiers are a convenient 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. See the 'MODIFIERS' section for more details on how the
particular modifiers work.
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.
Parent classes need not know about 'Class::Method::Modifiers'. This means
you should be able to modify methods in _any_ subclass. See
Term::VT102::ZeroBased for an example of subclassing with
'Class::Method::Modifiers'.
In short, 'Class::Method::Modifiers' solves the problem of making sure you
call '$self->SUPER::foo(@_)', and provides a cleaner interface for it.
As of version 1.00, 'Class::Method::Modifiers' is faster in some cases than
Moose. See 'benchmark/method_modifiers.pl' in the Moose distribution.
'Class::Method::Modifiers' also provides an additional "modifier" type,
'fresh'; see below.

Alternatives

Package Version Architecture Repository
perl-Class-Method-Modifiers - - -

Requires

Name Value
perl(:MODULE_COMPAT_5.18.2) -
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1

Provides

Name Value
perl(Class::Method::Modifiers) = 2.12
perl-Class-Method-Modifiers = 2.12-3.1

Download

Type URL
Mirror widehat.opensuse.org
Binary Package perl-Class-Method-Modifiers-2.12-3.1.noarch.rpm
Source Package perl-Class-Method-Modifiers-2.12-3.1.src.rpm

Install Howto

Install perl-Class-Method-Modifiers rpm package:

# zypper install perl-Class-Method-Modifiers

See Also

Package Description
perl-Class-Method-Modifiers-Fast-0.041-17.1.noarch.rpm provides Moose-like method modifiers
perl-Class-MethodMaker-2.24-6.11.x86_64.rpm Create generic methods for OO Perl
perl-Class-Mix-0.005-3.1.noarch.rpm Dynamic Class Mixing
perl-Class-Multimethods-1.70-599.1.x86_64.rpm This Package Supports Multimethods and Subroutine Overloading in Perl
perl-Class-ReturnValue-0.55-17.1.noarch.rpm Return-value object that lets you treat it as as a boolean, array or object
perl-Class-Singleton-1.4-22.3.noarch.rpm Implementation of a "Singleton" class
perl-Class-Spiffy-0.15-142.1.noarch.rpm Spiffy Framework with No Source Filtering
perl-Class-Std-0.013-4.1.noarch.rpm Support for creating standard "inside-out" classes
perl-Class-Tiny-1.004-3.1.noarch.rpm Minimalist class construction
perl-Class-Trigger-0.14-10.1.noarch.rpm Mixin to add / call inheritable triggers
perl-Class-Unload-0.09-6.1.noarch.rpm Unload a class
perl-Class-WhiteHole-0.04-233.1.x86_64.rpm Base class to treat unhandled method calls as errors
perl-Class-XPath-1.4-147.1.noarch.rpm Adds xpath matching to object trees
perl-Class-XSAccessor-1.19-8.11.x86_64.rpm Generate fast XS accessors without runtime compilation
perl-Clipboard-0.13-12.1.x86_64.rpm Copy and Paste with any OS
Advertisement
Advertisement