local-perl-Class-Method-Modifiers-2.04-1.noarch.rpm


Advertisement

Description

local-perl-Class-Method-Modifiers - Class-Method-Modifiers - provides Moose-like method modifiers

Property Value
Distribution CentOS 5
Repository End Point i386
Package name local-perl-Class-Method-Modifiers
Package version 2.04
Package release 1
Package architecture noarch
Package type rpm
Installed size 113.93 KB
Download size 43.12 KB
Official Mirror packages.endpoint.com
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
C<< $self->SUPER::foo(@_) >>. I for one have trouble remembering that exact
invocation, so my classes seldom re-dispatch to their base classes. Very bad!
C<Class::Method::Modifiers> provides three modifiers: C<before>, C<around>, and
C<after>. C<before> and C<after> are run just before and after the method they
modify, but can not really affect that original method. C<around> is run in
place of the original method, with a hook to easily call that original method.
See the C<MODIFIERS> section for more details on how the particular modifiers
work.
One clear benefit of using C<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 C<Class::Method::Modifiers>. This means you
should be able to modify methods in I<any> subclass. See
L<Term::VT102::ZeroBased> for an example of subclassing with CMM.
In short, C<Class::Method::Modifiers> solves the problem of making sure you
call C<< $self->SUPER::foo(@_) >>, and provides a cleaner interface for it.
As of version 1.00, C<Class::Method::Modifiers> is faster in some cases than
L<Moose>. See C<benchmark/method_modifiers.pl> in the L<Moose> distribution.
C<Class::Method::Modifiers> also provides an additional "modifier" type,
C<fresh>; see below.

Alternatives

Package Version Architecture Repository
local-perl-Class-Method-Modifiers-2.04-1.noarch.rpm 2.04 noarch End Point
local-perl-Class-Method-Modifiers-1.08-1.noarch.rpm 1.08 noarch End Point
local-perl-Class-Method-Modifiers-1.08-1.noarch.rpm 1.08 noarch End Point
local-perl-Class-Method-Modifiers-1.01-1.noarch.rpm 1.01 noarch End Point
local-perl-Class-Method-Modifiers-1.01-1.noarch.rpm 1.01 noarch End Point
local-perl-Class-Method-Modifiers - - -

Requires

Name Value
local-perl >= 5.006
local-perl >= 5.005
local-perl(Config) -
local-perl(Cwd) -
local-perl(ExtUtils::MakeMaker) -
local-perl(Fcntl) -
local-perl(File::Find) -
local-perl(File::Path) -
local-perl(base) -
local-perl(strict) -
local-perl(vars) -
local-perl(warnings) -

Provides

Name Value
local-perl(Class::Method::Modifiers) = 2.04
local-perl(Module::Install) = 1.06
local-perl(Module::Install::AuthorRequires) = 0.02
local-perl(Module::Install::AutoLicense) = 0.08
local-perl(Module::Install::Base) = 1.06
local-perl(Module::Install::Base::FakeAdmin) -
local-perl(Module::Install::Can) = 1.06
local-perl(Module::Install::Fetch) = 1.06
local-perl(Module::Install::GithubMeta) = 0.22
local-perl(Module::Install::Makefile) = 1.06
local-perl(Module::Install::Metadata) = 1.06
local-perl(Module::Install::ReadmeFromPod) = 0.20
local-perl(Module::Install::Win32) = 1.06
local-perl(Module::Install::WriteAll) = 1.06
local-perl-Class-Method-Modifiers = 2.04-1

Download

Type URL
Binary Package local-perl-Class-Method-Modifiers-2.04-1.noarch.rpm
Source Package local-perl-Class-Method-Modifiers-2.04-1.src.rpm

Install Howto

  1. Download latest endpoint-release rpm from https://packages.endpoint.com/rhel/5/os/i386/
  2. Install endpoint-release rpm:
    # rpm -Uvh endpoint-release*rpm
  3. Install local-perl-Class-Method-Modifiers rpm package:
    # yum install local-perl-Class-Method-Modifiers

Files

Path
/usr/local/lib/perl5/site_perl/5.10.0/Class/
/usr/local/lib/perl5/site_perl/5.10.0/Class/Method/Modifiers.pm
/usr/local/share/man/man3/Class::Method::Modifiers.3pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/Changes
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/LICENSE
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/README
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/AuthorRequires.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/AutoLicense.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/Base.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/Can.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/Fetch.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/GithubMeta.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/Makefile.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/Metadata.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/ReadmeFromPod.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/Win32.pm
/usr/share/doc/local-perl-Class-Method-Modifiers-2.04/inc/Module/Install/WriteAll.pm

Changelog

2013-07-16 - rpmbuildlcl@rhel5-build64.endpoint.com
- Initial build.

See Also

Package Description
local-perl-Class-MethodMaker-2.12-1.i386.rpm Class-MethodMaker - a module for creating generic methods
local-perl-Class-Mix-0.005-1.noarch.rpm Class-Mix - Perl module
local-perl-Class-ReturnValue-0.55-1.noarch.rpm Class-ReturnValue - A smart return value object
local-perl-Class-Singleton-1.4-1.noarch.rpm Class-Singleton - Base class for creating singleton objects
local-perl-Class-Std-0.0.9-1.noarch.rpm Class-Std - Perl module
local-perl-Class-Std-Fast-0.0.8-1.noarch.rpm Class-Std-Fast - Perl module
local-perl-Class-Trigger-0.13-1.noarch.rpm Class-Trigger - Mixin to add / call inheritable triggers
local-perl-Clone-0.29-1.i386.rpm Clone - recursively copy Perl datatypes
local-perl-Clone-PP-1.02-1.noarch.rpm Clone-PP - Recursively copy Perl datatypes
local-perl-Coat-0.334-1.noarch.rpm Coat - Light meta class for writing Moose compatible code
local-perl-Color-Library-0.021-1.noarch.rpm Color-Library - An easy-to-use and comprehensive named-color library
local-perl-Compress-Raw-Zlib-2.008-39.i386.rpm Low-Level Interface to the zlib compression library
local-perl-Compress-Zlib-2.008-39.i386.rpm A module providing Perl interfaces to the zlib compression library
local-perl-Config-Any-0.20-1.noarch.rpm Config-Any - Load configuration from different file formats, transparently
local-perl-Config-Crontab-1.30-1.noarch.rpm Config-Crontab - Read/Write Vixie compatible crontab(5) files
Advertisement
Advertisement