Inheritable, overridable class data
Class::Data::Inheritable is for creating accessor/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 overriden.
.
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;
Attachment | Size | Date |
---|---|---|
libclass-data-inheritable-perl_0.08-1_all.deb | 8.63 KB | 05/08/2013 - 14:58 |
libclass-data-inheritable-perl (0.08-1) unstable; urgency=low
* Take over for the Debian Perl Group on maintainer's request
(Closes: #468084)
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
field (source stanza); Homepage field (source stanza). Changed:
Maintainer set to Debian Perl Group <pkg-perl-
maintainers@lists.alioth.debian.org> (was: Ivan Kohler <ivan-
debian@420.am>);
* debian/watch: use dist-based URL.
* debian/rules: delete /usr/lib/perl5 only if it exists.
Closes: #467708
Recent comments