./devel/p5-Class-Base, Useful base class for deriving other modules

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.09nb3, Package name: p5-Class-Base-0.09nb3, Maintainer: pkgsrc-users

This module implements a simple base class from which other modules
can be derived, thereby inheriting a number of useful methods such
as new(), init(), params(), clone(), error() and debug().

For a number of years, I found myself re-writing this module for
practically every Perl project of any significant size. Or rather,
I would copy the module from the last project and perform a global
search and replace to change the names. Each time it got a little
more polished and eventually, I decided to Do The Right Thing and
release it as a module in it's own right.

It doesn't pretend to be an all-encompassing solution for every
kind of object creation problem you might encounter. In fact, it
only supports blessed hash references that are created using the
popular, but by no means universal convention of calling new() with
a list or reference to a hash array of named parameters. Constructor
failure is indicated by returning undef and setting the $ERROR
package variable in the module's class to contain a relevant message
(which you can also fetch by calling error() as a class method).


Required to run:
[lang/perl5] [devel/p5-Clone]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)

SHA1: 09d9cdd8b59eadc19ae0a09d18108289bbf26010
RMD160: 6d84e801c4b7005bd0d3ea76442a4d943b9f3fe6
Filesize: 32.81 KB

Version history: (Expand)


CVS history: (Expand)


   2020-08-31 20:13:29 by Thomas Klausner | Files touched by this commit (3631) | Package updated
Log message:
*: bump PKGREVISION for perl-5.32.
   2019-08-11 15:25:21 by Thomas Klausner | Files touched by this commit (3557) | Package updated
Log message:
Bump PKGREVISIONs for perl 5.30.0
   2019-06-30 22:17:50 by Nia Alarie | Files touched by this commit (1816) | Package updated
Log message:
Update packages using a search.cpan.org HOMEPAGE to metacpan.org.

The former now redirects to the latter.

This covers the most simple cases where http://search.cpan.org/dist/name
can be changed to https://metacpan.org/release/name.

Reviewed by hand to hopefully make sure no unwanted changes sneak in.
   2018-08-22 11:48:07 by Thomas Klausner | Files touched by this commit (3558)
Log message:
Recursive bump for perl5-5.28.0
   2018-01-10 09:46:33 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Class-Base: update to 0.09.

0.09 2018-01-04
  [ DOCUMENTATION ]
    - Fix pod typo. (GH#4, knowledgejunkie)

  [ ENHANCEMENTS ]
    - clone method now deep clone.
    - a few minor refactorings.

  [ STATISTICS ]
    - code churn: 9 files changed, 139 insertions(+), 137 deletions(-)
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2016-08-07 08:21:49 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 0.08

Upstream changes:
0.08 2016.07.25
    Fix release (hopefully)

0.07 2016.07.25
    BUILD_REQUIRES vs TEST_REQUIRES  (Kent Fredric)
   2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | Package updated
Log message:
Bump PKGREVISION for perl-5.24.