Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Class-Method-Modifiers-2.12-lp152.3.2 RPM for noarch

From OpenSuSE Leap 15.2 for noarch

Name: perl-Class-Method-Modifiers Distribution: openSUSE Leap 15.2
Version: 2.12 Vendor: openSUSE
Release: lp152.3.2 Build date: Fri Sep 20 19:33:43 2019
Group: Development/Libraries/Perl Build host: cloud117
Size: 48726 Source RPM: perl-Class-Method-Modifiers-2.12-lp152.3.2.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/Class-Method-Modifiers/
Summary: Provides Moose-like method modifiers
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.

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* Tue Mar 08 2016 coolo@suse.com
  - updated to 2.12
    see /usr/share/doc/packages/perl-Class-Method-Modifiers/Changes
    2.12      2016-03-04 22:12:15Z
    - minor documentation tweaks
* Tue Sep 16 2014 coolo@suse.com
  - updated to 2.11
    - add documentation for modifying multiple methods at once (mannih,
      github #2)
* Fri Mar 07 2014 coolo@suse.com
  - updated to 2.10
    - installation switched to using only ExtUtils::MakeMaker, to allow
      for use on perl 5.6
* Fri Jan 17 2014 lars@linux-schulserver.de
  - updated to 2.09
    + refresh configure_requires checking in generated Makefile.PL; new
      CONTRIBUTING file; updated tests (compile test now only runs for
      authors; check-deps test replaced by information-only report-prereqs
      test)
* Mon Nov 25 2013 coolo@suse.com
  - updated to 2.08
    - remove requirement on perl 5.8 in metadata
    - repository migrated to the github moose organization
    - remove t/00-check-deps.t, which fails on old toolchains that do not
      understand configure_requires
* Fri Oct 04 2013 coolo@suse.com
  - updated to 2.07
    - removed dependency on Test::Warnings in tests (now reserved for
      author testing)
    - now packaged with a Build.PL (for Module::Build::Tiny), and a
      Makefile.PL (for legacy 5.6 and 5.8 users; prints a warning on
      invocation)
    - packaging the dist again with EUMM rather than MBT
    - Support for handling lvalue methods (Graham Knop)
    - convert to building with Dist::Zilla
* Mon Jun 03 2013 coolo@suse.com
  - updated to 2.04
      Test for and fix $_ corruption (Vladimir Timofeev)
      New 'fresh' modifier (Aaron Crane)
      Avoid "Variable "$..." will not stay shared" warnings under 5.8.x
      (from changes in 1.09) [#80194] (Karen Etheridge)
* Thu Apr 19 2012 tabraham@novell.com
  - updated to 1.09
    - Install modified subs in the proper namespace [#74569]
      (Karen Etheridge)
* Wed Oct 26 2011 tabraham@novell.com
  - updated to 1.08 Sun Oct 16 2011
    - document install_modifier (requested by Tokuhiro Matsuno)
* Wed May 11 2011 dbahi@novell.com
  - 1.07    Wed Feb 23 2011
    Move from Test::Exception to Test::Fatal (Justin Hunter)
  - 1.06    Fri Nov 26 2010
    Add support for: modifier ["name1", "name2"] => sub {}

Files

/usr/lib/perl5/vendor_perl/5.26.1/Class
/usr/lib/perl5/vendor_perl/5.26.1/Class/Method
/usr/lib/perl5/vendor_perl/5.26.1/Class/Method/Modifiers.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Class-Method-Modifiers
/usr/share/doc/packages/perl-Class-Method-Modifiers/CONTRIBUTING
/usr/share/doc/packages/perl-Class-Method-Modifiers/Changes
/usr/share/doc/packages/perl-Class-Method-Modifiers/LICENSE
/usr/share/doc/packages/perl-Class-Method-Modifiers/README
/usr/share/man/man3/Class::Method::Modifiers.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Sat Mar 9 11:46:52 2024