1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Source: libclass-data-inheritable-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Damyan Ivanov <dmn@debian.org>,
Xavier Guimard <yadd@debian.org>
Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper-compat (= 13)
Build-Depends-Indep: libtest-pod-coverage-perl <!nocheck>,
libtest-pod-perl <!nocheck>,
perl
Standards-Version: 4.7.0
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libclass-data-inheritable-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libclass-data-inheritable-perl.git
Homepage: https://metacpan.org/release/Class-Data-Inheritable
Rules-Requires-Root: no
Package: libclass-data-inheritable-perl
Architecture: all
Depends: ${misc:Depends},
${perl:Depends}
Description: Perl module to create accessors to class data
Class::Data::Inheritable is for creating accessors/mutators to class
data. That is, if you want to store something about your class as a
whole (instead of about a single object). This data is then inherited
by your subclasses and can be overridden.
.
For example:
.
Pere::Ubu->mk_classdata('Suitcase');
.
will generate the method Suitcase() in the class Pere::Ubu.
.
This new method can be used to get and set a piece of class data.
.
Pere::Ubu->Suitcase('Red');
$suitcase = Pere::Ubu->Suitcase;
|